optiprofiler.Feature.modifier_ceq

optiprofiler.Feature.modifier_ceq#

Feature.modifier_ceq(x, seed, problem, n_eval_ceq)[source]#

Modify the values of the nonlinear equality constraints.

Parameters:
xnumpy.ndarray, shape (n,)

Point at which the nonlinear equality constraints are evaluated.

seedint

Seed used to generate random numbers.

problemProblem

Problem for which the nonlinear equality constraints are modified.

n_eval_ceqint

Number of evaluations of the nonlinear equality constraints. (We will use it to generate random streams so that evaluating the same point multiple times will not lead to the same random numbers.)

Returns:
numpy.ndarray

Modified values of the nonlinear equality constraints.