Accessing bounds for a range constraint

25 views
Skip to first unread message

gabe.ha...@gmail.com

unread,
Jul 14, 2017, 5:08:49 PM7/14/17
to Gurobi Optimization
For a range constraint, what can I do to access the lower and upper bound associated with it? The RHS attribute only seems to store one of the bounds. Can both bounds be obtained through some other indirect method?

Gabe

gabe.ha...@gmail.com

unread,
Jul 15, 2017, 4:42:00 PM7/15/17
to Gurobi Optimization
I should also add that I am using the Python API.

Gabe

Daniel Espinoza

unread,
Jul 17, 2017, 9:17:13 AM7/17/17
to Gurobi Optimization
Hi Gabe,

Internally, gurobi represent range constraints with equations with an extra variable (see http://www.gurobi.com/documentation/7.5/refman/py_model_addrange.html)
so, the upper/lower bound information is mixed in the right hand side of the constraint and the bounds of the extra variable.

Best,
Daniel

Reply all
Reply to author
Forward
0 new messages