public interface IterativeOptimizer
This IterativeOptimizer
interface has to be implemented by all
population-based iterative optimizers.
To bind an IterativeOptimizer
, use
OptimizerModule.bindIterativeOptimizer(java.lang.Class<? extends org.opt4j.core.optimizer.IterativeOptimizer>)
.
Modifier and Type | Method and Description |
---|---|
void |
initialize()
This method is called a single time before the optimization process is
started.
|
void |
next()
Performs the next iteration in the optimization process.
|
void initialize() throws TerminationException
TerminationException
- if the optimization is terminatedvoid next() throws TerminationException
TerminationException
- if the optimization is terminated