Closed hdavid16 closed 2 years ago
Since quadratic constraints can be modeled using the standard constraint macro, these can be reformulated without the hack in https://github.com/hdavid16/DisjunctiveProgramming.jl/issues/7.
These constraints are nonlinear so they need to be reformulated as such.
To identify if a constraint is quadratic:
ref_obj = constraint_object(ref) # ref is the ConstraintRef ref_obj.func isa QuadExpr # this will give true if quadratic
Since quadratic constraints can be modeled using the standard constraint macro, these can be reformulated without the hack in https://github.com/hdavid16/DisjunctiveProgramming.jl/issues/7.
These constraints are nonlinear so they need to be reformulated as such.