plot_functions.plot_objective#

plot_functions.plot_objective(objective_values: ndarray, ALGORITHM_PARAMETERS: dict[str, Any]) None#

Plots the objective value.

The objective value at each iteration or at each OBJ_EVAL_ITERATION th iteration if DECR_NR_OBJ_EVAL=True is plotted.

Parameters:
  • objective_values (np.ndarray) – The objective value at each iteration.

  • ALGORITHM_PARAMETERS (dict[str, Any]) – The algorithm parameters. The parameters DECR_NR_OBJ_EVAL, OBJ_EVAL_ITERATION, SAVE_OUTPUT, INSTANCE_OUTPUT_DIRECTORY and CURRENT_INSTANCE_NAME are at least necessary. See main.py for parameter explanations. Note that INSTANCE_OUTPUT_DIRECTORY and CURRENT_INSTANCE_NAME are set in the methods of run_algorithm.py.