[Osi] fixing binary variables

Ted Ralphs ted at lehigh.edu
Thu Aug 5 11:00:36 EDT 2010


I don't think there is anything special in Osi about a fixed binary
other than having the upper and lower bounds equal. You should just be
able to use setColUpper() or setColLower() to fix variables. The
isFreeBinary() method just checks the bounds to see if they are still
0 and 1.

Ted

On Wed, Aug 4, 2010 at 10:24 AM, Hans Pirnay <hanspirnay at googlemail.com> wrote:
> Hey everyone,
>
> I am looking for an easy and simple way to fix binary variables to 0
> or 1 in an OSI (somthing like
> OsiSolverInterface::fixBinaryVariable(int colindex, bool value)).
> While looking through the doxygen documentation I found some notes
> that seemed to point in this direction - isFreeBinary seems to be the
> inverse to what I want  - but I  couldn't find it - did I just not see
> it or is there no such member?
>
> thanks
>
> Hans
>
> _______________________________________________
> Osi mailing list
> Osi at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/osi
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted





More information about the Osi mailing list