Ignore:
Timestamp:
Mar 25, 2011 3:05:04 PM (10 years ago)
Author:
forrest
Message:

allow for elapsed time on unix

File:
1 edited

Legend:

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

    r1585 r1623  
    17371737        32768 more heuristics in sub trees
    17381738        65536 no cuts in preprocessing
     1739        131072 Time limits elapsed
    17391740    */
    17401741    inline void setMoreSpecialOptions(int value) {
     
    17441745    inline int moreSpecialOptions() const {
    17451746        return moreSpecialOptions_;
     1747    }
     1748  /// Set time method
     1749    inline void setUseElapsedTime(bool yesNo) {
     1750        if (yesNo)
     1751          moreSpecialOptions_ |= 131072;
     1752        else
     1753          moreSpecialOptions_ &= ~131072;
     1754    }
     1755    /// Get time method
     1756    inline bool useElapsedTime() const {
     1757        return (moreSpecialOptions_&131072)!=0;
    17461758    }
    17471759    /// Go to dantzig pivot selection if easy problem (clp only)
     
    24362448    int specialOptions_;
    24372449    /** More special options
    2438         at present bottom 3 bits used for shadow price mode
     2450        at present bottom 6 bits used for shadow price mode
     2451        1024 for experimental hotstart
     2452        2048,4096 breaking out of cuts
     2453        8192 slowly increase minimum drop
     2454        16384 gomory
     2455        32768 more heuristics in sub trees
     2456        65536 no cuts in preprocessing
     2457        131072 Time limits elapsed
    24392458    */
    24402459    int moreSpecialOptions_;
Note: See TracChangeset for help on using the changeset viewer.