Package org.opt4j.core.optimizer
Interface IterativeOptimizer
-
public interface IterativeOptimizer
This
IterativeOptimizer
interface has to be implemented by all population-based iterative optimizers.To bind an
IterativeOptimizer
, useOptimizerModule.bindIterativeOptimizer(java.lang.Class<? extends org.opt4j.core.optimizer.IterativeOptimizer>)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
initialize
void initialize() throws TerminationException
This method is called a single time before the optimization process is started. It can be used to initialize used data structures, etc.- Throws:
TerminationException
- if the optimization is terminated
-
next
void next() throws TerminationException
Performs the next iteration in the optimization process.- Throws:
TerminationException
- if the optimization is terminated
-
-