メインコンテンツへスキップ

list index out of range when adding variables

回答済み

コメント

1件のコメント

  • Jaromił Najman
    • Gurobi Staff

    The error means that you are trying to access your list \(\texttt{Y}\) at an undefined entry given as \(\texttt{i,j,k,d}\). In order to debug this issue, you should print the values of \(\texttt{i,j,k,d}\) and then compare the values to how you originally defined your list \(\texttt{Y}\).

    1

サインインしてコメントを残してください。