KeyError (-1,-1)
回答済みHi,
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
-
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
サインインしてコメントを残してください。
コメント
1件のコメント