Topic
  • 1 reply
  • Latest Post - ‏2013-01-23T16:12:49Z by SystemAdmin
SystemAdmin
SystemAdmin
1883 Posts

Pinned topic reading solution paramter data with OPL

‏2013-01-16T20:46:31Z |
I am writing an OPL based book that is a companion to this book http://amzn.to/V8v9C9, and our material will be used in a Kellog Business School course in a few weeks,

One area that has come up is the need to read the equivalent of CPXgetmipobjval and CPXgetbestobjval with OPL. That is to say, the total cost of the best integer solution, and the bound on the best possible solution. The latter is particularly important for testing, in my opinion. But, when working with the API, I always prefer to capture both.

Without capturing these parameters, maintaining a test suite becomes rather difficult unless one solves every data set to near optimality. For industrial data, that just isn't realistic.
Updated on 2013-01-23T16:12:49Z at 2013-01-23T16:12:49Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1883 Posts

    Re: reading solution paramter data with OPL

    ‏2013-01-23T16:12:49Z  
    getBestObjValue is available from OPL script but not the MIPObjValue.
    CPXgetmipobjval is not available on the IloCplex C++ API so is also not available from OPL.