Package org.uma.evolver.algorithm.base
Interface BaseLevelAlgorithm<S extends org.uma.jmetal.solution.Solution<?>>
- Type Parameters:
S- the solution type handled by the algorithm
- All Known Implementing Classes:
BaseMOEAD,BaseMOPSO,BaseNSGAII,BaseRDEMOEA,BaseSMSEMOA,BinaryMOEAD,BinaryNSGAII,DoubleMOEAD,DoubleNSGAII,DoubleRDEMOEA,DoubleSMSEMOA,PermutationMOEAD,PermutationNSGAII,PermutationRDEMOEA
public interface BaseLevelAlgorithm<S extends org.uma.jmetal.solution.Solution<?>>
Interface representing a configurable evolutionary algorithm.
An BaseLevelAlgorithm defines the contract for evolutionary algorithms that can be
configured via a ParameterSpace, instantiated for a specific problem, and built
into a ready-to-run Algorithm instance.
Typical usage involves:
- Accessing and configuring the parameter space.
- Parsing command-line arguments or other configuration sources.
- Creating an instance for a specific problem and evaluation budget.
- Building the algorithm and running it.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a configuredAlgorithminstance.createInstance(org.uma.jmetal.problem.Problem<S> problem, int maximumNumberOfEvaluations) Creates a new instance of the algorithm for the given problem and maximum number of evaluations.Returns the parameter space associated with this algorithm.default BaseLevelAlgorithm<S> Parses the given arguments and configures all top-level parameters in the parameter space.
-
Method Details
-
parameterSpace
ParameterSpace parameterSpace()Returns the parameter space associated with this algorithm.- Returns:
- the parameter space
-
build
-
createInstance
BaseLevelAlgorithm<S> createInstance(org.uma.jmetal.problem.Problem<S> problem, int maximumNumberOfEvaluations) Creates a new instance of the algorithm for the given problem and maximum number of evaluations.- Parameters:
problem- the problem to solvemaximumNumberOfEvaluations- the evaluation budget- Returns:
- a new configured instance of the algorithm
-
parse
Parses the given arguments and configures all top-level parameters in the parameter space. The arguments should be provided as an array of strings in the format ["--param1", "value1", "--param2", "value2", ...]. Returnsthisfor fluent usage.- Parameters:
args- the arguments to parse, in the format ["--param1", "value1", "--param2", "value2", ...]- Returns:
- this algorithm instance, configured according to the arguments
-