How to set maxIterations?

Hi there

I’m trying the simpleExample.java but I can not understand how to set the maxIterations value. There are some xml config files at the input folder, but after changing the XX to 5000 the program is just doing 2000 iterations.

Thanks for your help.

add the following

algorithm.setMaxIterations(5000);

after this line.