Non-negative variables and -0.0 values
AnsweredI 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
-
Please see this post.
0
Please sign in to leave a comment.
Comments
1 comment