<br><font size=2 face="sans-serif">Dr. Forrest, thanks for your response.</font>
<br>
<br><font size=2 face="sans-serif">The test application, which is provided
with Cbc, enables preprocessing by default, so we were indeed using it.
&nbsp;(See Cbc/Test/CbcMain.cpp, in the function main.)</font>
<br>
<br><font size=2 face="sans-serif">I turned it off and the results look
much better: the results from getColSolution and bestSolution are now very
similar and adhere to the constraints. &nbsp;The bestSolution vector has
some ignorable tiny deviations from 0 in some variable; the getColSolution
vector seems to lack these. &nbsp;Do you have any further advice or clarification?
&nbsp;Without it, I think we will go back to getColSolution for now.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>John J Forrest &lt;jjforre@us.ibm.com&gt;</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/18/2006 08:28 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>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">Discussions about open source
software for Operations Research &lt;coin-discuss@list.coin-or.org&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [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>
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><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
John Forrest</font><font size=3> <br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=64%><font size=1 face="sans-serif"><b>acw@ascent.com</b> <br>
Sent by: coin-discuss-bounces@list.coin-or.org</font><font size=3> </font>
<p><font size=1 face="sans-serif">01/17/2006 05:07 PM</font><font size=3>
</font>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% 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>
<p>
<td width=35%>
<table width=100%>
<tr valign=top>
<td width=14%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=85%><font size=1 face="sans-serif">coin-discuss@list.coin-or.org</font><font size=3>
</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>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
<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> </font><font size=2 face="sans-serif"><br>
<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> </font><font size=2 face="sans-serif"><br>
<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>
</font><font size=2 face="sans-serif"><br>
<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>
</font><font size=2 face="sans-serif"><br>
<br>
Thank you for your assistance. &nbsp;We are finding Cbc, overall, quite
easy to work with and adapt to our needs.</font><font size=2><tt>_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss</tt></font><font size=3><br>
</font><font size=2><tt>_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</tt></font>
<br>