Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to hide the solving progress

    Posted 07/26/10 05:50 PM

    Originally posted by: SystemAdmin


    I want to hide the immediate results during the execution of cplex::solver() method. For example, I want to hide this part:

    1 of 1 MIP starts provided solutions.
    MIP start 'm1' defined initial solution with objective 80544.0000.
    Tried aggregator 2 times.
    MIP Presolve eliminated 57 rows and 272 columns.
    Aggregator did 28 substitutions.
    Reduced MIP has 50 rows, 86 columns, and 285 nonzeros.
    Reduced MIP has 0 binaries, 0 generals, 0 SOSs, and 0 indicators.
    Presolve time = 0.02 sec.
    MIP emphasis: balance optimality and feasibility.
    MIP search method: dynamic search.
    Parallel mode: deterministic, using up to 2 threads.
    Root relaxation solution time = 0.00 sec.

    Nodes Cuts/
    Node Left Objective IInf Best Integer Best Node ItCnt Gap

    • 0+ 0 80544.0000 19 ---
    0 0 cutoff 80544.0000 19 0.00%

    Root node processing (before b&c):
    Real time = 0.05
    Parallel b&c, 2 threads:
    Real time = 0.00
    Sync time (average) = 0.00
    Wait time (average) = 0.00

    Thanks for your suggestion.

    Lessi.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to hide the solving progress

    Posted 07/26/10 06:06 PM

    Originally posted by: SystemAdmin


    C++ API? Try env.setOut(env.getNullStream()), where env is your instance of IloEnv. It directs all terminal output to a black hole.

    /Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: How to hide the solving progress

    Posted 07/28/10 01:30 PM

    Originally posted by: SystemAdmin


    I tried it but it does not work. I dont know why?

    Lessi.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: How to hide the solving progress

    Posted 07/28/10 02:26 PM

    Originally posted by: SystemAdmin


    Try

    cplex.setOut(env.getNullStream());
    


    where env is your instance of IloEnv and cplex is your instance of IloCplex.

    Jave is so much simpler (sigh).

    /Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: How to hide the solving progress

    Posted 07/28/10 01:30 PM

    Originally posted by: SystemAdmin


    Does not work.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: How to hide the solving progress

    Posted 08/16/10 11:20 AM

    Originally posted by: SystemAdmin


    Are you still having trouble with this?
    If so, does this work:
    cplex.setOut(cplex.getEnv().getNullStream());
    cplex.solve();
    

    It works for me. If it still does not work, could you post your code?
    #CPLEXOptimizers
    #DecisionOptimization