gemseo.post.quad_approx module#

Quadratic approximations of functions from the optimization history.

class QuadApprox(opt_problem)[source]#

Bases: BasePost[QuadApprox_Settings]

Quadratic approximation of a function.

And cuts of the approximation.

The function index can be passed as option.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

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

Settings#

alias of QuadApprox_Settings

static unnormalize_vector(xn_array, ivar, lower_bounds, upper_bounds)[source]#

Unormalize a variable with respect to bounds.

Parameters:
  • xn_array (NumberArray) -- The normalized variable.

  • ivar (int) -- The index of the variable bound.

  • lower_bounds (NumberArray) -- The lower bounds of the variable.

  • upper_bounds (NumberArray) -- The upper bounds of the variable.

Returns:

The unnormalized variable.

Return type:

NumberArray