<font size=2 face="sans-serif">After you call solver.loadProblem, you
can declare a particular variable to be integer with solver.setInteger(columnIndex).
&nbsp;If there's a special way to declare binary variables, I don't know
it, but if you give the variable a lower bound of 0 and an upper bound
of 1, that should do it.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Christos &lt;chtsolak@gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">&quot;cbc@list.coin-or.org&quot; &lt;cbc@list.coin-or.org&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">09/01/2012 07:20 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [Cbc] binary variables</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>On 30/8/2012 23:11, Christos wrote:</font>
<br><font size=3>Hi, <br>
i created a model and i want to expand it. <br>
I want to add variables-columns which are binary(0-1). <br>
How can i state it to Cbc in order not to be perceived as continuous variables?
<br>
<br>
Thank you. </font>
<br><font size=3>I found in the CBC user's guide, in the &quot;Pseudo Cost
Branching&quot; Chapter the sentence:<br>
</font><font size=3 face="Times New Roman"><br>
&quot;If the user declares variables as integer but does no more, then
CBC will treat them as simple integer variables.&quot;</font><font size=3><br>
<br>
How can i declare a variable to be integer(binary 0-1)?<br>
<br>
I use the OsiClpSolverInterface and pass the model to the solver with the
method:<br>
<i><br>
loadProblem(numcols, numrows, start, index, value, collb, colub, obj, rowlb,
rowub)</i><br>
<br>
Thank you</font><tt><font size=2>_______________________________________________<br>
Cbc mailing list<br>
Cbc@list.coin-or.org<br>
</font></tt><a href="http://list.coin-or.org/mailman/listinfo/cbc"><tt><font size=2>http://list.coin-or.org/mailman/listinfo/cbc</font></tt></a><tt><font size=2><br>
</font></tt>
<br>