Hello folks,
I hope this is an easy question, but unfortunately some of the internals of MathOptInterface and JuMP are opaque. constraint_object(constraint::ConstraintRef) operation in JuMP returns a ScalarConstraint, which has .func and .set attributes. I know how to evaluate the .func, but I am still confused about how to confirm membership in the set (i.e. feasibility to the constraint). Here is a MWE.
using MathOptInterface
val = 18.
set = MathOptInterface.GreaterThan{Float64}(-2.)
# How do I confirm membership in the set, returning Bool, or distance from constraint boundary?
Thanks in advance!