Difference between revisions of "Configure EA"

From jecoliwiki
Jump to: navigation, search
(Created page with "Category:Howtos __TOC__ ==== Executing the Algorithm ==== The ''EvolutionaryAlgorithm'' class implements the ''IAlgorithm'' interface and therefore it can be executed ...")

Latest revision as of 16:26, 5 March 2013


[edit] 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