Yes.<br><br>To deal with argc/argv, you need to include all the parameters for Cbc as Osi paramaters. And then inside branchAndBound you pull form Osi parameters to build that string.<br><br><br><br><br><br><div class="gmail_quote">
On Tue, Feb 22, 2011 at 11:43 AM, Lou Hafer <span dir="ltr"><<a href="mailto:lou@cs.sfu.ca">lou@cs.sfu.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Matt,<br>
<br>
Interesting suggestion. As you say, the current best practice for cbc is<br>
<div class="im"><br>
CbcModel cbc(*m_osi);<br>
CbcMain0(cbc);<br>
CbcMain1(argc, argv, cbc);<br>
<br>
</div> The equivalent with OsiCbc would be<br>
<br>
OsiXXXSolverInterface m_osi() ;<br>
OsiCbcSolverInterface m_osicbc(m_osi) ;<br>
CbcMain0(m_osi.modelPtr()) ;<br>
CbcMain1(argc, argv, m_osi.modelPtr()) ;<br>
<br>
So you could rewrite OsiCbcSolverInterface::branchAndBound() to do something<br>
like this:<br>
<br>
OsiCbcSolverInterface::branchAndBound()<br>
{ << set up argc, argv somehow >><br>
CbcMain0(modelPtr_) ;<br>
CbcMain1(argc, argv, modelPtr_) ; }<br>
<br>
Might be useful. Try it and see if it works for you.<br>
<font color="#888888"><br>
Lou<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Osi mailing list<br>
<a href="mailto:Osi@list.coin-or.org">Osi@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/osi" target="_blank">http://list.coin-or.org/mailman/listinfo/osi</a><br>
</div></div></blockquote></div><br>