Ignore:
Timestamp:
Oct 8, 2006 7:33:47 PM (13 years ago)
Author:
forrest
Message:

towards common use with other solvers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcHeuristicFPump.hpp

    r356 r439  
    4747                       double * newSolution);
    4848
     49  /// Set maximum Time (default off) - also sets starttime to current
     50  void setMaximumTime(double value);
     51  /// Get maximum Time (default 0.0 == time limit off)
     52  inline double maximumTime() const
     53  { return maximumTime_;};
     54  /// Set fake cutoff (default COIN_DBL_MAX == off)
     55  inline void setFakeCutoff(double value)
     56  { fakeCutoff_ = value;};
     57  /// Get fake cutoff (default 0.0 == off)
     58  inline double fakeCutoff() const
     59  { return fakeCutoff_;};
     60  /// Set absolute increment (default 0.0 == off)
     61  inline void setAbsoluteIncrement(double value)
     62  { absoluteIncrement_ = value;};
     63  /// Get absolute increment (default 0.0 == off)
     64  inline double absoluteIncrement() const
     65  { return absoluteIncrement_;};
     66  /// Set relative increment (default 0.0 == off)
     67  inline void setRelativeIncrement(double value)
     68  { relativeIncrement_ = value;};
     69  /// Get relative increment (default 0.0 == off)
     70  inline double relativeIncrement() const
     71  { return relativeIncrement_;};
    4972  /// Set maximum passes (default 100)
    5073  inline void setMaximumPasses(int value)
     
    5376  inline int maximumPasses() const
    5477  { return maximumPasses_;};
    55   /// Set maximum Time (default off) - also sets starttime to current
    56   void setMaximumTime(double value);
    57   /// Get maximum Time (default 0.0 == time limit off)
    58   inline double maximumTime() const
    59   { return maximumTime_;};
     78  /// Set maximum retries (default 1)
     79  inline void setMaximumRetries(int value)
     80  { maximumRetries_=value;};
     81  /// Get maximum retries (default 1)
     82  inline int maximumRetries() const
     83  { return maximumRetries_;};
    6084
    6185protected:
     
    6589  /// Maximum Cpu seconds
    6690  double maximumTime_;
     91  /// If less than this round down
     92  double downValue_;
     93  /** Fake cutoff value.
     94      If set then better of real cutoff and this used to add a constraint
     95  */
     96  double fakeCutoff_;
     97  /// If positive carry on after solution expecting gain of at least this
     98  double absoluteIncrement_;
     99  /// If positive carry on after solution expecting gain of at least this times objective
     100  double relativeIncrement_;
    67101  /// Maximum number of passes
    68102  int maximumPasses_;
    69   /// If less than this round down
    70   double downValue_;
     103  /** Maximum number of retries if we find a solution.
     104      If negative we clean out used array
     105  */
     106  int maximumRetries_;
    71107  /// If true round to expensive
    72108  bool roundExpensive_;
     
    82118             bool roundExpensive=false,
    83119             double downValue=0.5, int *flip=0);
     120  /* note for eagle eyed readers.
     121     when_ can now be exotic -
     122     <=10 normal
     123  */
    84124};
    85125
Note: See TracChangeset for help on using the changeset viewer.