```Python
while iteration_number <= NumberOfIterationsModel().getValue() and iteration_counter < max_iterations:
```