在我的數據輸入文件中,有參數Input [j] [n] [a] [b] [c] [d] [e] [f] [g] [對於j,n,a,b,c,d,e,f,g,h,i,k的所有值,h [i] [k]使用決策變量作爲數組索引的CPLEX OPL
我的模型計算一些布爾決策變量(從dv1到dv10)(目標是最小化成本)。然後,我需要計算Value [j] [n],該值等於輸入的相應值,具體取決於決策變量。但誤差'Indexing array "Input" with type dvar boolean not supported by this algorithm'
因此,我要做到以下幾點:
forall(j in J, n in N) {
Value[j][n] == Input[j][n][dv1][dv2][dv3][dv4][dv5][dv6][dv7][dv8][dv9][dv10][dv11][dv12];
}
你怎麼能在CPLEX計算這個?提前致謝!