optiprofiler.Feature.modifier_fun#
- Feature.modifier_fun(x, seed, problem, n_eval)[source]#
Modify the objective function value.
- Parameters:
- x
numpy.ndarray, shape (n,) Point at which the objective function is evaluated.
- seedint
Seed used to generate random numbers.
- problem
Problem 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.)
- x
- Returns:
- float
Modified objective function value.