Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  IloOplOutputFile

    Posted 11/05/18 01:29 PM

    Originally posted by: JamesGordon16549879


    Hello,

     

    How can I create an object   f  var ofile = new IloOplOutputFile("Resultat.txt"); ; and call the object on my post process each time the model will be solved , my purpose is to create an object  " ofile "  one time  and call it, at each time my model will be solved and display the results in a file, I don't wanna do this on the main bloc  because I have a lot of parameters.

     

    my model is an iterative one so it solves for different data and I am trying to output at  each time the results .

    At this time it returns me only the last the iteration because at each time I am calling the postprocess it's creats a new file and crush the last results ...  

     

    Another solution would be to copy the result that display Cplex/Opl  on its script box directly on my file , but i dont know how to do it with the language of Cplex/OPL .. 

     

    Regards thanks ! 


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: IloOplOutputFile

    Posted 11/05/18 03:14 PM

    Hi,

    do not hesitate to use the append parameter:

    IloOplOutputFile(path, append)

     

     

    Parameters:
    path - Optional: The path of the file to open.
    append - Optional: If true, sets the stream position at the end of the file.

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: IloOplOutputFile

    Posted 11/07/18 03:43 PM

    Originally posted by: JamesGordon16549879


    Thanks  , that works perfectly  when we turn it into true !  


    #DecisionOptimization
    #OPLusingCPLEXOptimizer