Non-negative variables and -0.0 values
回答済みI am trying to solve a goal programming problem. My deviation variables' (n_l, p_l) values are supposed to be non-negative integers. I even added constraints like
for l in L: m.addConstr(nl[l]>= 0) m.addConstr(pl[l]>= 0)
but I still get -0.0 for some of the variable values while 0.0 for others.
I can see 0.0 is valid but what does -0.0 mean and why the added constraints do not take care of it?
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. -
Please see this post.
0
投稿コメントは受け付けていません。
コメント
2件のコメント