Ignore:
Timestamp:
May 31, 2011 4:10:30 AM (8 years ago)
Author:
forrest
Message:

allow end cuts and lagomory

File:
1 edited

Legend:

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

    r1573 r1656  
    167167    }
    168168
     169    /// Get switches (for debug)
     170    inline int switches() const {
     171        return switches_;
     172    }
    169173    /// Get whether the cut generator should be called in the normal place
    170174    inline bool normal() const {
     
    319323        switches_ &= ~1024;
    320324        switches_ |= yesNo ? 1024 : 0;
     325    }
     326    /// Whether in must call again mode (or after others)
     327    inline bool whetherInMustCallAgainMode() const {
     328        return (switches_&2048) != 0;
     329    }
     330    /// Set whether in must call again mode (or after others)
     331    inline void setWhetherInMustCallAgainMode(bool yesNo) {
     332        switches_ &= ~2048;
     333        switches_ |= yesNo ? 2048 : 0;
     334    }
     335    /// Whether to call at end
     336    inline bool whetherCallAtEnd() const {
     337        return (switches_&4096) != 0;
     338    }
     339    /// Set whether to call at end
     340    inline void setWhetherCallAtEnd(bool yesNo) {
     341        switches_ &= ~4096;
     342        switches_ |= yesNo ? 4096 : 0;
    321343    }
    322344    /// Number of cuts generated at root
Note: See TracChangeset for help on using the changeset viewer.