Package org.opt4j.core.optimizer
Provides the classes for the optimizer.
The Optimizer
represents an optimization
algorithm. Usually, all iteration-based
Optimizer
s are derived from the
IterativeOptimizer
.
The IterativeOptimizer
initializes the
Population
by using the
IndividualFactory
to get new
Individual
s. In each iteration, the
IterativeOptimizer
uses
Operator
s to vary the
Genotype
s. The package org.opt4j.operators
contains predefined Operator
classes which
are applicable for different Genotype
s.
The IterativeOptimizer
is managed by the
OptimizationMediator
which itself is an
AbstractOptimizer
. The
AbstractOptimizer
implements some essential
methods for coupling optimizers with the framework. It interacts with the
OptimizerIterationListener
s which are
informed whenever an iteration is complete, the
OptimizerStateListener
s which are informed
whenever the optimization starts or stops, and the
Control
: The
Control
allows to pause and resume, stop, or
terminate the optimization process. While the
Population
contains the
Individual
s of the current
Iteration
, the
Archive
contains the non-dominated
Individual
s that were obtained throughout the whole
optimization process. The AbstractOptimizer
updates the Archive
with the current
Population
and triggers the
Iteration
count. Instead of using the
Decoder
and
Evaluator
directly, the
IndividualCompleter
is used by
Optimizer
s to determine the phenotype and
the Objectives
of new
Individual
s in the
Population
.
-
Interface Summary Interface Description ControlListener TheControlListener
is an interface of classes that listen to theControl
state.IndividualCompleter AnIndividualCompleter
completes the evaluation process ofIndividual
s.IterativeOptimizer ThisIterativeOptimizer
interface has to be implemented by all population-based iterative optimizers.Operator<G extends Genotype> TheOperator
is the basic interface for all operators.Optimizer ThisOptimizer
interface has to be implemented by all population-based optimizers.OptimizerIterationListener TheOptimizerIterationListener
is used to monitor the iteration of theOptimizer
.OptimizerStateListener TheOptimizerStateListener
is used to monitor the state of theOptimizer
. -
Class Summary Class Description AbstractOptimizer TheAbstractOptimizer
is an abstract implementation of a population-basedOptimizer
.Archive AnArchive
is used to store a set of high-qualityIndividual
s.Control TheControl
allows to pause, stop, and terminate, the optimization process.Iteration TheIteration
object is used as iteration counter for the optimization.OptimizationMediator TheOptimizationMediator
performs the overall optimization process for theIterativeOptimizer
.OptimizerModule Abstract module class for theOptimizer
modules.Population ThePopulation
manages a set ofIndividual
s. -
Enum Summary Enum Description Control.State TheControl.State
of the control. -
Exception Summary Exception Description IncompatibilityException StopException TheStopException
is thrown if the optimization is stopped.TerminationException TheTerminationException
is thrown if the optimization is terminated. -
Annotation Types Summary Annotation Type Description MaxIterations TheMaxIterations
is the default binding annotation for the maximal number of iterations for anOptimizer
.