public class Negater extends CommandLineUtility
This utility modifies the file in place. Avoid killing the process as doing so may leave the file(s) in a corrupted state.
Usage: java -cp "..." org.moeaframework.analysis.sensitivity.Negater <options> <files>
-d, --direction |
The optimization direction (required). A comma-separated list with
1 if the objective should be negated (maximized) and 0 otherwise
(e.g., -d 1,0,1 to negate the first and third objective).
|
<files> |
The files to be negated. |
Constructor and Description |
---|
Negater()
Constructs the command line utility for negating the objectives in
result files.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.cli.Options |
getOptions()
Returns the options made available by this command line utility.
|
static void |
main(java.lang.String[] args)
Starts the command line utility for negating the objectives in
result files.
|
void |
run(org.apache.commons.cli.CommandLine commandLine)
Runs this command line utility with the specified command line arguments.
|
getCommandString, setCommandString, start
public Negater()
public org.apache.commons.cli.Options getOptions()
CommandLineUtility
-h,--help
option.
Implementations overriding this method and begin with a call to
super.getOptions()
.getOptions
in class CommandLineUtility
public void run(org.apache.commons.cli.CommandLine commandLine) throws java.lang.Exception
CommandLineUtility
run
in class CommandLineUtility
commandLine
- the command line argumentsjava.lang.Exception
- if any exception occurred while running this commandpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- the command line argumentsjava.lang.Exception
- if an error occurredCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.