Difference between revisions of "Getting Results"

From jecoliwiki
Jump to: navigation, search
(Created page with "Category:Howtos After running one of the available algorithms, an object of the type ''IAlgorithmResult'' is created. The statistics of a run can be obtained by the meth...")
 

Latest revision as of 16:27, 5 March 2013


After running one of the available algorithms, an object of the type IAlgorithmResult is created.

The statistics of a run can be obtained by the method getAlgorithmStatistics( ) over the results. This returns a IAlgorithmStatistics object.

To get the best solution (T extends IRepresentation):

ISolution<T> bestSolution = results.getSolutionContainer().getBestSolutionCellContainer(true).getSolution();

Use getRepresentation() to get the genome of the solution (needs a cast to the appropriate type)

Personal tools