Ignore:
Timestamp:
Dec 13, 2007 10:01:17 AM (13 years ago)
Author:
forrest
Message:

for deterministic parallel

File:
1 edited

Legend:

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

    r833 r838  
    120120  inline void setHeuristicName(const char *name)
    121121  { heuristicName_ = name;}
     122  /// Set random number generator seed
     123  void setSeed(int value);
    122124
    123125protected:
     
    133135  /// Fraction of new(rows+columns)/old(rows+columns) before doing small branch and bound
    134136  double fractionSmall_;
     137  /// Thread specific random number generator
     138  CoinThreadRandom randomNumberGenerator_;
    135139  /// Name for printing
    136140  std::string heuristicName_;
     
    177181  virtual int solution(double & objectiveValue,
    178182                       double * newSolution);
     183  /** returns 0 if no solution, 1 if valid solution
     184      with better objective value than one passed in
     185      Sets solution values if good, sets objective value (only if good)
     186      This is called after cuts have been added - so can not add cuts
     187      Use solutionValue rather than solvers one
     188  */
     189  virtual int solution(double & objectiveValue,
     190                       double * newSolution,
     191                       double solutionValue);
    179192  /// Validate model i.e. sets when_ to 0 if necessary (may be NULL)
    180193  virtual void validate();
     
    193206  // Original matrix by
    194207  CoinPackedMatrix matrixByRow_;
     208
     209  // Down locks
     210  unsigned short * down_;
     211
     212  // Up locks
     213  unsigned short * up_;
     214
     215  // Equality locks
     216  unsigned short * equal_;
    195217
    196218  // Seed for random stuff
Note: See TracChangeset for help on using the changeset viewer.