<div> </div>
<div>Thanks Laszlo,</div>
<div> </div>
<div>This is wonderful. It just works...</div>
<div> </div>
<div>regards,</div>
<div>vishy</div>
<div><br><br> </div>
<div><span class="gmail_quote">On 5/16/07, <b class="gmail_sendername">Laszlo Ladanyi</b> <<a href="mailto:ladanyi@us.ibm.com">ladanyi@us.ibm.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><br>On Wed, 16 May 2007, Vishy Jeet wrote:<br><br>> For some reason the function call getModelPtr() which is obviously a much
<br>> cleaner approach didn't work, since I could not compile my Flopcpp program<br>> if I access getModelPtr() function.<br>> I get the following error<br>><br>> error: 'class OsiSolverInterface' has no member named 'getModelPtr'
<br>><br>> I know getModelPtr() is declared in 'class OsiCbcSolverInterface' not in<br>> 'class OsiSolverInterface' but I don't know how to tell it to my Flopcpp<br>> program. In fact from Flopcpp I can't even call Solver->branchAndBound()
<br>> function directly.<br><br>First you got to dynamic cast the pointer to the solver into a<br>OsiCbcSolverInterface* object, then use the getModelPtr() method:<br><br> dynamic_cast<OsiCbcSolverInterface*>(solver)->getModelPtr()
<br><br>--Laci<br><br>_______________________________________________<br>Coin-discuss mailing list<br><a href="mailto:Coin-discuss@list.coin-or.org">Coin-discuss@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/coin-discuss">
http://list.coin-or.org/mailman/listinfo/coin-discuss</a></blockquote></div>