Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  setOut question

    Posted 05/03/14 12:12 PM

    Originally posted by: Lessi


    I want to print again the results to the screen after setting cplex.setOut(env.getNullStream());  (C++) ;

     

    but I do not know how to do it

    Thanks for your help

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: setOut question

    Posted 05/03/14 01:03 PM

    Originally posted by: Ibrahim_Capar


    Lessi,

    As far as I know, you can either output log to the screen or a file. To write the log to a file you need to add following code (C++):

    std::ofstream LogFile("LogFile.txt");
    cplex.setOut(LogFile);
    

    Hope this helps.

    Ibrahim


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: setOut question

    Posted 05/03/14 05:15 PM

    Originally posted by: Lessi


    I solved by cplex.setOut(env.Out()); to redirect again to the screen.


    #CPLEXOptimizers
    #DecisionOptimization