To execute a given algorithm N times, the multipleAlgorithmRuns method in the IAlgorithm interface can be used.
This execute the algorithm and saves the results in a predefined location.
In this case, the statistics to be calculated are defined by default:
The following example runs an algorithm created with a given configuration for 3 runs, saving the results in the folder tests, sub-folder "test1".
IAlgorithm algorithm = new EvolutionaryAlgorithm(configuration); algorithm.multipleAlgorithmRuns("tests", "test1", 3);