optiprofiler.Feature.modifier_cub

optiprofiler.Feature.modifier_cub#

Feature.modifier_cub(x, seed, problem, n_eval_cub)[source]#

Modify the values of the nonlinear inequality constraints.

Parameters:
xnumpy.ndarray, shape (n,)

Point at which the nonlinear inequality constraints are evaluated.

seedint

Seed used to generate random numbers.

problemProblem

Problem for which the nonlinear inequality constraints are modified.

n_eval_cubint

Number of evaluations of the nonlinear inequality 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 inequality constraints.