Originally posted by: SerkanBayram
Hi !
I'm trying to write my OPL solution's in to a excel file. The problem is I don't know how to write the solutions certain field like A2:A4.
Best Regards.
This is the example of my code.
execute{
var ocD = 0
for(var v in Vehicle){
for(var p in Product){
for (var j in DC){
for (var t in Period){
ocD += OC[j]* DCb[v][p][j][t];
}
}
}
}
var f=new IloOplOutputFile("OPLResults.xls");
f.writeln("Order_Cost ",ocD);
f.close();
}
#DecisionOptimization#OPLusingCPLEXOptimizer