This is a very simple question, but I couldn't find a straightforward answer online. When you enter an inequality constraint into a Gurobi model, under the hood it seems to rewrite it as an equality constraint with a slack variable.I'm not sure what convention is used for the sign of the slack variable.
For instance, if I have a constraint of the form
I don't know if Gurobi reformulates it as
and the same goes for a constraint of the form
After optimizing, when I query the value of a nonzero slack variable, will it always be positive or will its sign depend on the direction of the original inequality for which this slack variable was created ?
Thanks for your help!