gemseo / post

quad_approx module

Quadratic approximations of functions from the optimization history

class gemseo.post.quad_approx.QuadApprox(opt_problem)[source]

Bases: gemseo.post.opt_post_processor.OptPostProcessor

The QuadApprox post processing performs a quadratic approximation of a given function from an optimization history and plot the results as cuts of the approximation.

The function index can be passed as option. It is possible either to save the plot, to show the plot or both.

Constructor

:param opt_problem : the optimization problem to run

SR1_APPROX = 'SR1'
static unnormalize_vector(xn_array, ivar, lower_bounds, upper_bounds)[source]

Unormalize a variable with respect to bounds

Parameters
  • xn_array – normalized variable (array)

  • ivar – index of variable bound

  • lower_bounds – param upper_bounds:

  • upper_bounds

Returns

unnormalized array

Return type

numpy array