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, use OptimizerModule.bindIterativeOptimizer(java.lang.Class).


Method Summary
 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