Ignore:
Timestamp:
Aug 21, 2009 12:19:13 PM (10 years ago)
Author:
forrest
Message:

fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcCutGenerator.hpp

    r1211 r1212  
    204204  inline void incrementNumberCutsInTotal(int value=1)
    205205  { numberCuts_ += value;}
     206  /// Total number of elements added
     207  inline int numberElementsInTotal() const
     208  { return numberElements_;}
     209  inline void setNumberElementsInTotal(int value)
     210  { numberElements_ = value;}
     211  inline void incrementNumberElementsInTotal(int value=1)
     212  { numberElements_ += value;}
    206213  /// Total number of column cuts
    207214  inline int numberColumnCuts() const
     
    246253  inline void setIneffectualCuts(bool yesNo)
    247254  { switches_&=~512;switches_ |= yesNo ? 512 : 0;}
     255  /// Whether to use if nay cuts generated
     256  inline bool whetherToUse() const
     257  { return (switches_&1024)!=0;}
     258  /// Set whether to use if any cuts generated
     259  inline void setWhetherToUse(bool yesNo)
     260  { switches_&=~1024;switches_ |= yesNo ? 1024 : 0;}
    248261  /// Number of cuts generated at root
    249262  inline int numberCutsAtRoot() const
     
    322335  /// Total number of cuts added
    323336  int numberCuts_;
     337  /// Total number of elements added
     338  int numberElements_;
    324339  /// Total number of column cuts added
    325340  int numberColumnCuts_;
Note: See TracChangeset for help on using the changeset viewer.