Getting Results

From jecoliwiki
Jump to: navigation, search


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