Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX gap information

    Posted 09/21/09 05:31 AM

    Originally posted by: SystemAdmin


    [hernan said:]

    Hi everybody!
    When CPXmipopt finishes, I want to get the last gap information that appears in the log file, so if CPXmipopt execution finishes caused by Time Limit, I want to know the %gap. Is it possible using CPLEX Callable Library or I must parse the log file??
    Thanks!

    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX gap information

    Posted 10/05/09 11:17 PM

    Originally posted by: SystemAdmin


    [achterberg said:]

    Just use CPXgetbestobjval() to get the dual bound ('db') and CPXgetobjval() to get the primal bound ('pb'). Then calculate |pb - db|/|pb|, of course checking for pb = 0 before calculating the ratio.

    #CPLEXOptimizers
    #DecisionOptimization