<br><font size=2 face="sans-serif">David,</font>
<br>
<br><font size=2 face="sans-serif">What you are doing is cleaner and more
predictable. &nbsp;If you want to you can just set integers by model.solver()-&gt;setInteger(sequence).
&nbsp;But doing branch and cut may have set other things e.g. it is possible
that integer variables which had naturally been at their bound may or may
not have been fixed. &nbsp;One thing that you would certainly have to do
is reset the integer cutoff to infinity as otherwise the next branch and
bound will say it can't find a better solution.</font>
<br>
<br><font size=2 face="sans-serif">I will probably clean up some of these
less obvious aspects before release 1.0.</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>svoboda@fi.muni.cz</b>
</font>
<br><font size=1 face="sans-serif">Sent by: coin-lpsolver-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">05/06/2005 05:50 AM</font>
<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">coin-lpsolver@list.coin-or.org</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">[Coin-lpsolver] Adding a
new condition</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hello,<br>
<br>
I've been using CbcModel class as a tool for solving the integer <br>
programming problem. I do the iterative computation in the sence that:<br>
<br>
- the first iteration solves traditional linear programming problem <br>
(without any integer variables)<br>
<br>
- before the second iteration starts, some continuous variables are set
to <br>
integer variables.<br>
<br>
- keeping this course in each iteration, some variables are set to <br>
integer until a specific solution is obtained.<br>
<br>
The question is: may I add these &quot;integer limitations&quot; to CbcModel
<br>
directly (not to construct this model in each iteration), or is it <br>
necessary to add this type of condition to CoinModel and then to construct
<br>
a new CbcModel?<br>
<br>
<br>
With regards<br>
<br>
David Svoboda<br>
<br>
----------------------<br>
Faculty of Informatics, Masaryk University <br>
Botanická 68a, 602 00 BRNO, Czech Republic<br>
e-mail: svoboda@fi.muni.cz<br>
tel: +420-549 494 383_______________________________________________<br>
Coin-lpsolver mailing list<br>
Coin-lpsolver@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-lpsolver<br>
</tt></font>
<br>