cobyqa.problem.Problem.__call__#

Problem.__call__(x, penalty=0.0)[source]#

Evaluate the objective and nonlinear constraint functions.

Parameters:
xarray_like, shape (n,)

Point at which the functions are evaluated.

penaltyfloat, optional

Penalty parameter used to select the point in the filter to forward to the callback function.

Returns:
float

Objective function value.

numpy.ndarray, shape (m_nonlinear_ub,)

Nonlinear inequality constraint function values.

numpy.ndarray, shape (m_nonlinear_eq,)

Nonlinear equality constraint function values.

Raises:
cobyqa.utils.CallbackSuccess

If the callback function raises a StopIteration.