Originally posted by: AndyHam
Dear IBM,
Suppose there is test.mod which is controlled by flowControl.mod. And, the test.mod has a post-process, generating scheduling output. When I run the flowControl, I found the scheduling output from the test.mod is not generated. How can I generate the output when I call the model from flowControl?
Best Regards,
Andy
//flowControl.mod============================
main {
...
for(var iter=1;iter<=10;iter++)
{
var source = new IloOplModelSource("test.mod");
...
if (cp.solve()) writeln("iter " + iter + ", Cmax" + cmax);
...
}
//===========================================
//test.mod===================================
minimize cmax;
subject to { ...
}
execute {
writeln("m"+"\t"+ "j"+"\t" + "tk"+"\t"+ "s");
for (var j in JobList)
writeln( j.job + "\t" + itvJob[j].Start); <=== I want to see this output when the model is called by flowControl.
}
//===========================================
#DecisionOptimization#OPLusingCPOptimizer