Variable Values
回答済みHi,
I am using python.
I have a problem with the value of a variable. I fix the lower and upper bound to "1" and then solve the problem and I get that the variable that is fixed takes a different value nearest to one.
print(y[15].ub)
print(y[15].lb)
print(y[15].x)
what it's showed:
1.0
1.0
0.9999999999999999
as you can see the value of the variable y[15] is 0.999999999 and I don´t know why is it happening?
Can you help me please to solve that problem.
0
-
正式なコメント
This post is more than three 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 why not try our AI Gurobot?. -
Hi Mishelle,
Please see this article in our Knowledge Base: Why does Gurobi sometimes return non-integral values for integer variables?
Best,
Sonja
0
投稿コメントは受け付けていません。
コメント
2件のコメント