Ignore:
Timestamp:
Jun 28, 2014 3:43:35 AM (5 years ago)
Author:
forrest
Message:

minor changes to improve SOS and lotsize detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcModel.cpp

    r2040 r2041  
    20102010    {
    20112011      // check
    2012       int numberSOS = 0;
     2012      int numberOdd = 0;
    20132013      for (int i = 0; i < numberObjects_; i++) {
    2014         CbcSOS * obj =
    2015           dynamic_cast <CbcSOS *>(object_[i]) ;
    2016         if (obj)
    2017           numberSOS++;
     2014        CbcSimpleInteger * obj =
     2015          dynamic_cast <CbcSimpleInteger *>(object_[i]) ;
     2016        if (!obj)
     2017          numberOdd++;
    20182018      }
    2019       if (numberSOS)
     2019      if (numberOdd)
    20202020        moreSpecialOptions_ |= 1073741824;
    20212021    }
Note: See TracChangeset for help on using the changeset viewer.