gridsearch fix

Merged Jeffrey Wigger requested to merge wigger/decentralizepy:girdsearch_fix into main

Fixed the calculation of new_iterations.

Merge request reports