Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

writeln into the right place

  • 1.  writeln into the right place

    Posted 07/04/18 11:09 AM

    Originally posted by: oubax


    Hi, 

    I want to create new file excel for every run of opl code, the problem is that i can write the result in every new file but i do not know how to do it into the right place.

     ofile.writeln(thisOplModel.printSolution()  this is the function that I'm using to print solutions.

    But for example if i have a variable called X that i want to put it in the first case of my new excel file ( X in A1 of ofile ).

    Thank you.

     

     

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: writeln into the right place

    Posted 07/04/18 12:11 PM

    Hi,

    if you need to write into an excel file why don t you try SheetWrite ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer