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 Individual
s
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
-
Constructor Summary
ConstructorDescriptionSequentialIndividualCompleter
(Control control, Decoder decoder, Evaluator evaluator) Constructs aSequentialIndividualCompleter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete
(Iterable<? extends Individual> iterable) Decodes and evaluates allIndividual
s in theIterable
if they are not already evaluated.void
complete
(Individual... individuals) Decodes and evaluates all givenIndividual
s if they are not already evaluated.protected void
decode
(Individual individual) protected void
evaluate
(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:IndividualCompleter
Decodes and evaluates allIndividual
s in theIterable
if they are not already evaluated.- Specified by:
complete
in interfaceIndividualCompleter
- Parameters:
iterable
- the set of individuals to be completed- Throws:
TerminationException
- if the optimization is terminated
-
complete
Description copied from interface:IndividualCompleter
Decodes and evaluates all givenIndividual
s if they are not already evaluated.- Specified by:
complete
in interfaceIndividualCompleter
- Parameters:
individuals
- the individuals to be completed- Throws:
TerminationException
- if the optimization is terminated
-
evaluate
-
decode
-