Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Display computation time of LP subproblems when solving MILP

  • 1.  Display computation time of LP subproblems when solving MILP

    Posted Wed April 03, 2019 08:04 AM

    Originally posted by: ops1234


    Hello,

    I'm using the C API of cplex.

    Is there an option in the settings or some other way to display the computation time of each LP subproblem when solving MILPs?

    Another question: There is a column for ItCnt in the MIP log. Does this display the total Iteration count needed to solve those LP subproblems?

     

    Best regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Display computation time of LP subproblems when solving MILP

    Posted Sun April 07, 2019 05:11 PM

    Originally posted by: Lessi


     

    I think you can use a solve callback. To get computation time, you can use a function similar to this->getCplexTime() - this->getStartTime() (C++ Concert).


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Display computation time of LP subproblems when solving MILP

    Posted Mon April 08, 2019 01:31 AM

    Setting CPX_PARAM_MIPDISPLAY to 5 gives you the most detailed information about LP solves possible. That includes full LP logs for each subproblem solved. Note that for multi-threaded runs only the solves for thread 0 are displayed. Solves for other threads are written to the clone log files.

    Details about the node log can be found in the documentation here. This also explains what the ItCnt column reports.


    #CPLEXOptimizers
    #DecisionOptimization