gemseo / post

Show inherited members

constraints_history module

A matrix of constraint history plots.

class gemseo.post.constraints_history.ConstraintsHistory(opt_problem)[source]

Bases: OptPostProcessor

A matrix of constraint history plots.

A blue line represents the values of a constraint w.r.t. the iterations.

A background color indicates whether the constraint is satisfied (green), active (white) or violated (red).

An horizontal black line indicates the value for which an inequality constraint is active or an equality constraint is satisfied, namely \(0\). An horizontal black dashed line indicates the value below which an inequality constraint is satisfied with a tolerance level, namely \(\varepsilon\).

For an equality constraint, the horizontal dashed black lines indicate the values between which the constraint is satisfied with a tolerance level, namely \(-\varepsilon\) and \(\varepsilon\).

A vertical black line indicates the last iteration (or pseudo-iteration) where the constraint is (or should be) active.

Parameters:

opt_problem (OptimizationProblem) – The optimization problem to be post-processed.

Raises:

ValueError – If the JSON grammar file for the options of the post-processor does not exist.

database: Database

The database generated by the optimization problem.

materials_for_plotting: dict[Any, Any]

The materials to eventually rebuild the plot in another framework.

opt_problem: OptimizationProblem

The optimization problem.