Decision Optimization

Decision Optimization

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

 View Only
  • 1.  ExportModel Inside Callbacks

    Posted Thu August 14, 2014 11:55 PM

    Originally posted by: kaarthiksundar


    I am currently trying to implement a branch and cut algorithm using the CPLEX callbacks in C++. I was wondering if there is a way to do an exporModel("file.lp") inside the Lazy or UserCut Callback. I would like to store the LP files at each stage. 

     

    Thanks in advance,

     

    Kaarthik


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: ExportModel Inside Callbacks

    Posted Fri August 15, 2014 01:15 AM

    If "C++" means "C++ Concert technology" (class IloCplex and friends) then you cannot do that. Concert technology does not provide direct access to the model solved at each node.

    Direct access to the current node's LP is only available with the callable library.


    #CPLEXOptimizers
    #DecisionOptimization