[Dip] Restricted Master Solution Value

Matthew Galati magh at lehigh.edu
Sat Oct 16 11:05:30 EDT 2010


>
>
> Is there a way to get LP relaxation value of the master being solved
> through a function call? Is there a way to get at the Clp solver solution?
>


>From your user function, get access to the DecompAlgo class:
   DecompAlgo   * algo          = getDecompAlgo();

Then, use the access methods in there, e.g.:
   const double * masterDualSol    = algo->getMasterDualSolution();
   const double * masterPrimalSol = algo->getMasterPrimalSolution();
   double masterObjValue = algo->getMasterObjValue();

If you want direct access to the master Osi object, use:
   OsiSolverInterface * osi = algo->getMasterOSI( )

>From there, you can use any base Osi method, or if you want specific OsiClp
methods, cast the Osi object to an OsiClp object.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/dip/attachments/20101016/e3531e93/attachment.html 


More information about the Dip mailing list