Objective and constraints history#

In this example, we illustrate the use of the ObjConstrHist post-processing on the Sobieski's SSBJ problem.

The ObjConstrHist post-processing plots the history of the objective function with respect to the iterations. The background color provides information on the most violated constraint: red if the constraint is violated, white if it is active and green if it is satisfied.

Evolution of the objective and maximum constraint
    INFO - 16:25:46: Importing the optimization problem from the file sobieski_mdf_scenario.h5

<gemseo.post.obj_constr_hist.ObjConstrHist object at 0x72a4f270ae70>

from __future__ import annotations

from gemseo import execute_post
from gemseo.settings.post import ObjConstrHist_Settings

execute_post(
    "sobieski_mdf_scenario.h5",
    settings_model=ObjConstrHist_Settings(save=False, show=True),
)

Total running time of the script: (0 minutes 0.306 seconds)

Gallery generated by Sphinx-Gallery