optiprofiler.Feature.modifier_fun

optiprofiler.Feature.modifier_fun#

Feature.modifier_fun(x, seed, problem, n_eval)[source]#

Modify the objective function value.

Parameters:
xnumpy.ndarray, shape (n,)

Point at which the objective function is evaluated.

seedint

Seed used to generate random numbers.

problemProblem

Problem for which the objective function is modified.

n_eval: int

Number of evaluations of the objective function. (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:
float

Modified objective function value.