Originally posted by: SystemAdmin
Hi,
did you look at IloOplOutputFile?
After your constraints block, you would need to define a script to write the output you want:
execute {
var of = new IloOplOutputFile("myResult.txt");
of.writeln("Y=",Y);
of.write("[x1,x2,x3] = [",x1,",",x2,",",x3,"]");
of.close();
}
The content of the text file would then look like:
Y=0
[x1,x2,x3] = [1,0,1]
#DecisionOptimization#OPLusingCPLEXOptimizer