KeyError (-1,-1)
AnsweredHi,
I am trying to make an L-shaped method and when adding an optimality cut the program throws an "Key (-1,-1)" error, can someone help me? Thanks
0
-
Official comment
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,
I'm not sure how your sets I and J are defined but my current guess is that they start from 0. Then I'm also not sure how your x (variables) are defined. I guess that trying to access x[i-1, j-1] for i = 0 or j = 0 will result in the key error you are experiencing.
Best,
Michael
0
Post is closed for comments.
Comments
2 comments