optiprofiler.Problem.fun

Contents

optiprofiler.Problem.fun#

Problem.fun(x)[source]#

Evaluate the objective function.

The optimization problem is to minimize the objective function.

Parameters:
xarray_like, shape (n,)

Point at which to evaluate the objective function.

Returns:
float

Value of the objective function at x.

Raises:
ValueError

If the argument x has an invalid shape.