Configure EA

From jecoliwiki
Jump to: navigation, search


Contents


Executing the Algorithm

The EvolutionaryAlgorithm class implements the IAlgorithm interface and therefore it can be executed simply with the method run.

IAlgorithm<ILinearRepresentation<Integer>> algorithm = 
     new EvolutionaryAlgorithm<ILinearRepresentation<Integer>,IntegerRepresentationFactory>(configuration);
IAlgorithmResult<ILinearRepresentation<Integer>> result = algorithm.run();

Executing an IAlgorithm returns a class that implements the IResults interface. This keeps the main results for the algorithm run.

Personal tools