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 ifDECR_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
andCURRENT_INSTANCE_NAME
are at least necessary. Seemain.py
for parameter explanations. Note thatINSTANCE_OUTPUT_DIRECTORY
andCURRENT_INSTANCE_NAME
are set in the methods ofrun_algorithm.py
.