CUTEstProblem.objcons
- CUTEstProblem.objcons(x)
Evaluate objective and constraints.
# objective and constraints f, c = problem.objcons(x)
For unconstrained problems, c is None.
This calls CUTEst routine CUTEst_cfn.
- Parameters:
x (numpy.ndarray with shape (n,)) – input vector
- Returns:
tuple (f, c) of objective and constraint values at x for constrained problems.
- Return type:
(float, numpy.ndarray(m,))