<br><font size=2 face="sans-serif">Were you using pre-processing? &nbsp;If
not it definitely should have worked. &nbsp;If you are then there is now
a cleaner way of doing pre-processing using CbcStrategy - see Samples/repeat.cpp
to give you a clue. &nbsp;If you that fails it can you send me something
to help debug - I did some tests and it seemed Ok.</font>
<br>
<br><font size=2 face="sans-serif">John Forrest</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>acw@ascent.com</b> </font>
<br><font size=1 face="sans-serif">Sent by: coin-discuss-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">01/17/2006 05:07 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Discussions about open source software for Operations Research &nbsp; &nbsp;
&nbsp; &nbsp;&lt;coin-discuss@list.coin-or.org&gt;</font></div></table>
<br>
<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">coin-discuss@list.coin-or.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[Coin-discuss] Extracting the best solution
in Cbc.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
(Apologies if this message is a duplication; this message bounced the first
time because I had not properly joined the mailing list.)</font><font size=3>
</font><font size=2 face="sans-serif"><br>
__________________</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
We are using a COIN/Cbc application that we created by making slight modifications
to the test example provided with Cbc.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
What is the recommended way to extract the best feasible integer solution?
&nbsp;The documentation says to use CbcModel::bestSolution. &nbsp;We tried
this, and got bad (infeasible) results. &nbsp;The example application (in
its implementation of the SOLUTION command) uses CbcModel::getColSolution,
which is not documented. &nbsp;The documentation does mention OsiSolverInterface::getColSolution,
but this is deprecated (with somewhat ambiguous language) in favor of CbcModel::bestSolution.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
We decided to mimic the example, and tried the undocumented CbcModel::getColSolution.
&nbsp;This worked nicely with instances that ran to completion, but when
we added a time limit (with CbcModel::setMaximumSeconds) the reported solution
was again infeasible. &nbsp;(CbcModel::branchAndBound did report finding
several integer solutions in the running time available.)</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Thank you for your assistance. &nbsp;We are finding Cbc, overall, quite
easy to work with and adapt to our needs.</font><tt><font size=2>_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</font></tt>
<br>