<br><font size=2 face="sans-serif">Hi Stefan,</font>
<br>
<br><font size=2 face="sans-serif">Thanks much for the reply.</font>
<br>
<br><font size=2 face="sans-serif">There are two functions by that name.
One of them requires &quot;CBC_Message how&quot; as a first parameter.
Do you know which one should be used?</font>
<br><font size=2 face="sans-serif">I actually tried to use them in the
following manner:</font>
<br>
<br><font size=2 face="sans-serif">OsiCbcSolverInterface test;</font>
<br><font size=2 face="sans-serif">//....</font>
<br><font size=2 face="sans-serif">test.getModelPtr()-&gt;setBestSolution(...);</font>
<br>
<br><font size=2 face="sans-serif">with very strange outcomes.</font>
<br>
<br><font size=2 face="sans-serif">Would setBestObjectiveValue() achieve
similar effects in terms of B&amp;B node pruning behavior?</font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance.</font>
<br><font size=2 face="sans-serif">Best,</font>
<br><font size=2 face="sans-serif">Mikhail<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Stefan Vigerske &lt;stefan@math.hu-berlin.de&gt;</b>
</font>
<p><font size=1 face="sans-serif">14/07/2008 05:17 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">cbc@list.coin-or.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">Mikhail Nediak &lt;MNediak@business.queensu.ca&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Cbc] Incumbent solution</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Hi,<br>
<br>
&gt; Right now I use CBC via OSI and would like to pass an incumbent solution
to the <br>
&gt; B&amp;B (a single solution vector at the start of the run).<br>
&gt; Does anyone know of an easy and tested way to do it? &nbsp;Do I need
to go through <br>
&gt; CbcModel &amp; setBestSolution() or definition of a new heuristic,
etc?<br>
<br>
I think going through CbcModel is the easiest solution.<br>
John recently added another function CbcModel::setBestSolution(...) <br>
which you can give a primal solution and then it checks whether it is <br>
feasible and keeps it if so.<br>
<br>
Stefan<br>
<br>
-- <br>
Stefan Vigerske<br>
Humboldt University Berlin, Numerical Mathematics<br>
http://www.math.hu-berlin.de/~stefan<br>
</font></tt>
<br>