Gurobi Python lower bound not printed
AnsweredHi!
I’m using Gurobi in combination with Python. My model contains several variables that have a lower bound of zero. I added these by using the lb=0 parameter to the addVars() method (although I know that this is unnecessary as the lb of 0 is default). When I use model.write() and inspect the bounds, the lower bounds of these variables are not printed. Is this a design choice of Gurobi as lower bounds of zero are default? Or is this a sign that something is wrong with my model?
Thank you!
kind regards
0
-
Hi,
This is expected behavior, the zero lower bounds of the variables are not printed because they are default.
Best regards,
Elisabeth
0 -
Hi,
Thank you for your quick reply. It’s clear!
kind regards
0
Please sign in to leave a comment.
Comments
2 comments