Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Problem with callback ILOMIPINFOCALLBACK

    Posted 02/09/12 12:01 PM

    Originally posted by: dany__


    I've wrote a MIP problem about crew scheduling and I want to see the progress.
    With a callback I want to see the incumbent objvalue every seconds
    I've wrote a MIPINFOCALLBACK but the program never enter in the callback and don't write nothing
    an example of the callback wrote is:

    ILOMIPINFOCALLBACK2(returnCallback,
    IloCplex, cplex,
    IloNum, timeStart)
    {
    if ( hasIncumbent() ) {
    IloNum timeUsed = cplex.getCplexTime() - timeStart;
    cout<<"time : "<<timeUsed<<" value = "<<getIncumbentObjValue();

    }
    //cout<<"time : "<<timeUsed<<" value = "<<getIncumbentObjValue();
    }

    and call with

    cplex.use(returnCallback(env, cplex, cplex.getCplexTime));
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Problem with callback ILOMIPINFOCALLBACK

    Posted 02/09/12 01:11 PM

    Originally posted by: SystemAdmin


    And how does the log file look like? Maybe it takes forever to solve the root LP relaxation. CPLEX only calls the info callback for each node in the search tree, and if the root node already takes a very long time, then the info callback will not be called for quite a while.

    Tobias
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Problem with callback ILOMIPINFOCALLBACK

    Posted 02/17/12 05:46 PM

    Originally posted by: dany__


    Thank you, I've found the problem
    it was in the code for the algorithm
    #CPLEXOptimizers
    #DecisionOptimization