Decision Optimization

 View Only
Expand all | Collapse all

How can I get how long it took CPLEX to find the best feasible solution?

  • 1.  How can I get how long it took CPLEX to find the best feasible solution?

    Posted Mon July 25, 2022 10:08 AM
    Hi Everyone,

    I need to compare the CP and MIP models I developed for the same problem. In order to find which model is more efficient, I need to find out when the models reach the best feasible solution within the time limit I set. I can get this time for CP but not for the MIP model.

    Is there a way to find out in what time CPLEX reached the best solution within the time limit set for the MIP model?

    Thanks.

    ------------------------------
    Eyüp Ensar IŞIK
    ------------------------------

    #DecisionOptimization


  • 2.  RE: How can I get how long it took CPLEX to find the best feasible solution?

    Posted Mon August 08, 2022 10:21 AM
    For CPLEX models, if you look at the solve_details property of the Solution object, you will find the characteristics of the last solution if I don't mistake.

    ------------------------------
    Vincent Beraudier
    ------------------------------