Gurobi Python lower bound not printed
回答済みHi!
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
-
正式なコメント
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
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
投稿コメントは受け付けていません。
コメント
3件のコメント