Originally posted by: TracyLLL
Hi There,
I was debugging my OPL program and kept getting this error msg:
Scripting parser error: missing ')' at the following line:
kband=sum(i in idtot)vol[i][2][2]/sum(i in idtot)vol[i][1][2];
Though I don't see a problem here, I tried adding parenthesis and revise it to the following (or similar) but still failed.
kband=(sum(i in idtot)vol[i][2][2])/(sum(i in idtot)vol[i][1][2]);
Can anyone tell what the problem was? Thanks a lot!
The related code block and the whole structure are as follows:
int vol[idtot][apid][LTRid]=...;
float kband;
...
execute precal_vol{
kband=sum(i in idtot)vol[i][2][2]/sum(i in idtot)vol[i][1][2];
for(var in idtot){
for(var in apid){
...
}
}
}
dvar...
minimize
...;
subject to{
...;
}
#DecisionOptimization#MathematicalProgramming-General