我无法在 OPL 脚本中访问数组的先前迭代值

I can not reach the array' s previous iteration values in OPL Script

我在 CPlex 中有一个 MIP 模型。

而不是

tempX[iteration][i]= opl.X[i];

我会试试

tempX[iteration][i]= opl.X[i].solutionValue;