Check whether a point satisfies a constraint.
Set up optimization variables and two constraints.
Check whether the point x = 0
, y = 3
satisfies the constraint named cons
. A point is feasible when its infeasibility is zero.
The point is not feasible with respect to this constraint.
Check the feasibility with respect to the other constraint.
The point is feasible with respect to this constraint.