Originally posted by: Samira Fazel
Hi,
I wrote a code to generate data in OPL in .mod and would like to print the result in Excel file. My code doesn't have decision variables, objective function and subject to{....
The result which I would like to print in excel is a 5 dimensional array. I wrote my array using tuple for result and then I used writeln to print this result. I can see this output in OPL and command prompt as 6 dimensional array including the value of my array which is fine. Moreover, in order to connect to Excel I wrote
SheetConnection Sheet1("Result.xlsx");
demand to SheetWrite(Sheet1, "demand");
in .dat file.
However, I have some error in .dat file saying: the file is read only...
I was wondering if someone can help me for this question.
Thanks,
Sami
#DecisionOptimization#OPLusingCPLEXOptimizer