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
<gemseo.post.obj_constr_hist.ObjConstrHist object at 0x78592f834470>

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.316 seconds)

Gallery generated by Sphinx-Gallery