Package org.opt4j.common.completer
Class SequentialIndividualCompleter
java.lang.Object
org.opt4j.common.completer.SequentialIndividualCompleter
- All Implemented Interfaces:
IndividualCompleter
- Direct Known Subclasses:
ParallelIndividualCompleter
The SequentialIndividualCompleter completes the Individuals
sequentially.
It updates the Individual.State of the Individual according to the state
of the completion process. It uses Control between the different
(possibly time consuming) completion steps to allow the user to control the
completion process.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSequentialIndividualCompleter(Control control, Decoder decoder, Evaluator evaluator) Constructs aSequentialIndividualCompleter. -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(Iterable<? extends Individual> iterable) Decodes and evaluates allIndividuals in theIterableif they are not already evaluated.voidcomplete(Individual... individuals) Decodes and evaluates all givenIndividuals if they are not already evaluated.protected voiddecode(Individual individual) protected voidevaluate(Individual individual)
-
Field Details
-
decoder
-
evaluator
-
control
-
-
Constructor Details
-
SequentialIndividualCompleter
Constructs aSequentialIndividualCompleter.- Parameters:
control- the optimization controldecoder- the decoderevaluator- the evaluator
-
-
Method Details
-
complete
Description copied from interface:IndividualCompleterDecodes and evaluates allIndividuals in theIterableif they are not already evaluated.- Specified by:
completein interfaceIndividualCompleter- Parameters:
iterable- the set of individuals to be completed- Throws:
TerminationException- if the optimization is terminated
-
complete
Description copied from interface:IndividualCompleterDecodes and evaluates all givenIndividuals if they are not already evaluated.- Specified by:
completein interfaceIndividualCompleter- Parameters:
individuals- the individuals to be completed- Throws:
TerminationException- if the optimization is terminated
-
evaluate
-
decode
-