forall(j in J, c in C, p in P)
sum(i in I)X[i][j][c][p]+sum(r in R)F[r][j][c][p-1]+r1[c]*sum(m in
M)A[m][j][p-1]-r1[c]*sum(k in K)Y[j][k][p]==0;
在上述约束中,我收到错误:
索引超出数组“A(1)(1)”:0“和”OPL无法提取表达式:A [m] [j] [p +( - 1)]
答案 0 :(得分:0)
你能否至少尝试替换
forall(j in J, c in C, p in P)
通过
forall(j in J, c in C, p in P: (p-1) in P)
问候