12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

◆◆◆In Concert Technology, these numeric indices begin with 0 (zero). To access a particularsolution, pass the index of that solution as an argument to a method.In the Callable Library (C API), these numeric indices also begin with 0 (zero).Likewise, to access a particular solution, pass the index of that solution as an argument toa routine.In the Interactive Optimizer, these numeric indices begin with 1 (one). To display asolution, specify the index as an option in the display command. You access theincumbent in the Interactive Optimizer as index number 0 (zero).Table 15.2 summarizes the methods, routines, or commands that access information about agiven solution in the solution pool.Table 15.2Accessing solution information in the solution poolPurposeConcertmethodCallable Library routineInteractive Optimizer commandObjective value getObjValue CPXgetsolnpoolobjval display solution member i objValue of variable getValues CPXgetsolnpoolx display solution member i varSlack in linearconstraintsSlack in quadraticconstraintsgetSlacks CPXgetsolnpoolslack display solution member i slacksgetSlacks CPXgetsolnpoolqconstrslack display solution member i qcslacksQuality getQuality CPXgetsolnpoolintqualityorCPXgetsolnpooldblqualitydisplay solution member i qualityDifferencebetween solutions(see Notes) (see Notes) display solution difference i jNotes: In the Interactive Optimizer, the commanddisplay solution difference 1 2compares the first and second solution. Likewise, the commanddisplay solution difference 0 2compares the incumbent and the second solution.There is no exact equivalent of this difference command in Concert Technology or theCallable Library. In those APIs, first access the solution vector (for example, in the C++API by means of getValues or in the C API by means of the routine CPXgetsolnpoolx)and then write your own comparison.<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 317

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!