Originally posted by: SystemAdmin
[voydge said:]
Dear all,
I stuck in a problem:
At the beginning, I have defined 2 tuple types and initialized 2 sets respectively.
[b]tuple ship{
int id;
int bay;
}[/b]
and
[b]tuple job{
int qc;
ship ves;
}[/b]
[b]{ship} Ships=...;
{job} Jobs=...;[/b]
One of my decision variables is:
[b]dvar int+ x[Jobs] in 0..1;[/b]
Without the postprocess part, my model works well. In order to interpret the final result more easily, I add the postprocess part at the end of the model. The following is my postprocess:
[b]tuple result{
int qc;
int bay;
}
{result} Results[Ships];
execute{
var k;
for(k in Jobs)
if(x[k]==1)
[b][color=red] Results[k.ves]=<k.qc, k.ves.bay>;[/color][/b]
}; [/b]
However, ILOG provides me the runtime error for the line in RED above:
[color=red]error: Scripting compiler error: missing expression. [/color]
I have tried my best to fix it but still can not figure it out :(.
Seek your great help! Thanks a lot!
#DecisionOptimization#OPLusingCPLEXOptimizer