[Cbc] Free Binary
Stefan Vigerske
stefan at math.hu-berlin.de
Thu Sep 13 13:10:30 EDT 2012
Hi,
On 09/13/2012 06:58 PM, Christos wrote:
> Hi again,
>
> I learned from here that to declare a variable-column as Binary (to take
> only values 0-1), needs to use the command solver.setInteger() and
> colb[] = 0, colub = 1 ;
>
> Am i right?
Yes.
> I did all that but when i use the command solver.isFreeBinary() i get
> the true value.
> As i read for the description, isFreeBinare returns true if variable is
> binary and not fixed to either bound.
If the lower bound is 0 and the upper bound is 1, then the variable is
not fixed, aka free, thus you get true.
Stefan
>
> So why i get the true value?
>
> Thank you
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
More information about the Cbc
mailing list