(Created page with "Category:Howtos __TOC__ ==== Executing the Algorithm ==== The ''EvolutionaryAlgorithm'' class implements the ''IAlgorithm'' interface and therefore it can be executed ...")
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.