Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

How to get MIP solution statistics "mipitcnt, nodecnt, nodeleftcnt, nodeint" in Python API

  • 1.  How to get MIP solution statistics "mipitcnt, nodecnt, nodeleftcnt, nodeint" in Python API

    Posted 02/16/16 10:43 AM

    Originally posted by: BerkUstun


    The CPLEX MATLAB API returns the following statistics when in the MIP solution struct:

          time: 5.00
         dettime: 5982.85
         objval: 40.67
         x: [711x1 double]
         method: 12
         mipitcnt: 1908852
         ax: [719x1 double]
         nodecnt: 78817
         nodeleftcnt: 22176
         bestobjval: 19.65
         nodeint: 7597
         cutoff: 40.67
         miprelgap: 0.52
         pool: [1x1 struct]

     

    1. I am wondering how I can get the values of mipitcnt, nodecnt, nodeleftcnt, nodeint in the CPLEX Python API?

    2. Is there  a way to access this information as the MIP is being solved through a callback?

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to get MIP solution statistics "mipitcnt, nodecnt, nodeleftcnt, nodeint" in Python API

    Posted 02/16/16 02:57 PM

    Hi,

    with the CPLEX python API or with DOCPLEX ?

    With the first one, you could have a look at get_stats

    With the second, https://developer.ibm.com/answers/questions/242321/do-we-support-cplex-callback-features-in-docplex-p.html

    regards


    #CPLEXOptimizers
    #DecisionOptimization