check_end_conditions

BoulderOpalController.check_end_conditions()

Check whether any of the end contions have been met.

In particular this method check for any of the following conditions:

  • If the number of iterations has reached max_num_runs.

  • If the target_cost has been reached.

  • If max_num_runs_without_better_params iterations in a row have occurred without any improvement.

  • If max_duration seconds or more has elapsed since start_datetime.

Returns:

True, if the controller should continue or False if one or

more halting conditions have been met and the controller should end.

Return type:

bool