Skip to main content

KeyError (-1,-1)

Answered

Comments

1 comment

  • Michael Winkler
    Gurobi Staff Gurobi Staff

    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

Please sign in to leave a comment.