<div>&nbsp;</div>
<div>Thanks Laszlo,</div>
<div>&nbsp;</div>
<div>This is wonderful. It just works...</div>
<div>&nbsp;</div>
<div>regards,</div>
<div>vishy</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 5/16/07, <b class="gmail_sendername">Laszlo Ladanyi</b> &lt;<a href="mailto:ladanyi@us.ibm.com">ladanyi@us.ibm.com</a>&gt; 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>&gt; For some reason the function call getModelPtr() which is obviously a much
<br>&gt; cleaner approach didn&#39;t work, since I could not compile my Flopcpp program<br>&gt; if I access getModelPtr() function.<br>&gt; I get the following error<br>&gt;<br>&gt; error: &#39;class OsiSolverInterface&#39; has no member named &#39;getModelPtr&#39;
<br>&gt;<br>&gt; I know getModelPtr() is declared in &#39;class OsiCbcSolverInterface&#39; not in<br>&gt; &#39;class OsiSolverInterface&#39;&nbsp;&nbsp;but I don&#39;t know how to tell it to my Flopcpp<br>&gt; program. In fact from Flopcpp I can&#39;t even call Solver-&gt;branchAndBound()
<br>&gt; 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>&nbsp;&nbsp; dynamic_cast&lt;OsiCbcSolverInterface*&gt;(solver)-&gt;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>