Skip to main content

KeyError 0 - Gurobi - Jupyter Notebook

Answered

Comments

1 comment

  • Marika Karbstein
    • Gurobi Staff

    Your data v and w cannot be used in this way. 

    If gurobidata.xlsx is a table with headings 'weight' and 'capacity', you could do the following

    df=pd.read_excel('gurobidata.xlsx')
    v = df['weight'].tolist()
    w = df['capacity'].tolist()
    0

Please sign in to leave a comment.