Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Can I solve another optimization problem in the callback function?

    Posted Fri September 02, 2011 04:48 PM

    Originally posted by: billtc


    Can I solve another linear programming (with different objective and constraints, the coefficients may relate to the original problem) in the callback function (say, usercutcallback, branchcallback) of the original problem? I tried in C++ API but it terminate by itself.

    btw I am using cplex 12
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Can I solve another optimization problem in the callback function?

    Posted Fri September 02, 2011 04:49 PM

    Originally posted by: billtc


    Thanks~
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Can I solve another optimization problem in the callback function?

    Posted Fri September 02, 2011 05:15 PM

    Originally posted by: SystemAdmin


    Yes, you can solve an auxiliary problem within a callback, as long as whatever you are doing does not change anything belonging to the problem to which the callback is attached.

    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


  • 4.  Re: Can I solve another optimization problem in the callback function?

    Posted Mon September 05, 2011 10:55 AM

    Originally posted by: SystemAdmin


    To be a little more precise: You should use a new instances of IloEnv and IloCplex to do that.
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Can I solve another optimization problem in the callback function?

    Posted Mon September 05, 2011 05:53 PM

    Originally posted by: SystemAdmin


    You need new instances of IloModel and IloCplex. Do you really need a new instance of IloEnv? That would require all new variables and all new constraints.

    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