optiprofiler.FeaturedProblem.ceq#
- FeaturedProblem.ceq(x, record_hist=True)[source]#
Evaluate the nonlinear constraints
ceq(x) == 0.- Parameters:
- xarray_like, shape (n,)
Point at which to evaluate the nonlinear equality constraints.
- Returns:
numpy.ndarray, shape (m_nonlinear_eq,)Values of the nonlinear equality constraints at x if maximum number of evaluations has not been reached, otherwise returns the last evaluated nonlinear equality constraints.
- Raises:
- ValueError
If the argument x has an invalid shape or if the return value of the argument
ceqhas an invalid shape.- StopIteration
If the number of the nonlinear equality constraint evaluations has reached two times the maximum function evaluations.