Originally posted by: mbaddar1
Hello Everybody
i want to write OPL decision variable results to excel sheets ,
in the "oil" example
===========
SheetConnection sheet("oilSheet.xls");
Gasolines from SheetRead(sheet,"'gas data'!A2:A4");
Oils from SheetRead(sheet,"'oil data'!A2:A4");
Gas from SheetRead(sheet,"'gas data'!B2:E4");
Oil from SheetRead(sheet,"'oil data'!B2:E4");
MaxProduction = 14000;
ProdCost = 4;
a to SheetWrite(sheet,"RESULT!A2:A4");
Blend to SheetWrite(sheet,"RESULT!B2:D4");
=============
it reads and writes to already a created file
what should i do to create a new results sheet from OPL script and specify a named range ?
thanks and best regards
#CPLEXOptimizers#DecisionOptimization