Skip to main content

KeyError (-1,-1)

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    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?.
  • 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

Post is closed for comments.