public class Evaluator extends CommandLineUtility
Usage: java -cp "..." org.moeaframework.analysis.sensitivity.Evaluator <options>
-p, --parameterFile |
Location of the parameter configuration file (required) |
-i, --input |
Location of the parameter sample file (required) |
-o, --output |
The location of the output file. Each record in the output file will correspond to the end-of-run approximation set from each parameterization read from the parameter sample file. |
-b, --problem |
The name of the problem. This name should reference one of the problems recognized by the MOEA Framework. |
-a, --algorithm |
The name of the algorithm. This name should reference one of the algorithms recognized by the MOEA Framework. |
-x, --properties |
Semicolon-separated list of additional parameters for the
algorithm (e.g., -x maxEvaluations=10000;populationSize=100 .
|
-s, --seed |
The random number seed used for each run. |
-e, --epsilon |
The epsilon values for limiting the size of the results. This epsilon value is also used for any algorithms that include an epsilon parameter. |
-m, --metrics |
Compute the performance metrics and output a metric file. This is
equivalent to running ResultFileEvaluator on the result file
produced by this command. |
-r, --reference |
Location of the reference file used when computing the performance metrics (required if -m is set). |
-n, --novariables |
To save on space, do not save decision variables in the results. |
Modifier and Type | Field and Description |
---|---|
protected OutputWriter |
output
The output writer where end-of-run results are stored.
|
Constructor and Description |
---|
Evaluator()
Constructs the command line utility for evaluating an algorithm using
many parameterizations.
|
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 evaluating an algorithm using many
parameterizations.
|
protected void |
process(java.lang.String algorithmName,
TypedProperties properties,
Problem problem)
Performs a single run of the specified algorithm using the parameters.
|
void |
run(org.apache.commons.cli.CommandLine commandLine)
Runs this command line utility with the specified command line arguments.
|
getCommandString, setCommandString, start
protected OutputWriter output
public Evaluator()
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.io.IOException
CommandLineUtility
run
in class CommandLineUtility
commandLine
- the command line argumentsjava.io.IOException
protected void process(java.lang.String algorithmName, TypedProperties properties, Problem problem) throws java.io.IOException
algorithmName
- the algorithm nameproperties
- the parameters stored in a properties objectproblem
- the problem being evaluatedjava.io.IOException
- if an I/O error occurredpublic 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.