optiprofiler.FeaturedProblem.fun#
- FeaturedProblem.fun(x)[source]#
Evaluate 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 if maximum number of evaluations has not been reached, otherwise returns the last evaluated objective function value.
- Raises:
- ValueError
If the argument x has an invalid shape.
- StopIteration
If the number of the objective function evaluations has reached two times the maximum function evaluations.