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

for deterministic parallel

File:
1 edited

Legend:

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

    r765 r838  
    451451  virtual void print();
    452452
     453  /// Lower and upper bounds for down branch
     454  inline const double * downBounds() const
     455  { return down_;}
     456  /// Lower and upper bounds for up branch
     457  inline const double * upBounds() const
     458  { return up_;}
     459  /// Set lower and upper bounds for down branch
     460  inline void setDownBounds(const double bounds[2])
     461  { memcpy(down_,bounds,2*sizeof(double));}
     462  /// Set lower and upper bounds for up branch
     463  inline void setUpBounds(const double bounds[2])
     464  { memcpy(up_,bounds,2*sizeof(double));}
     465#ifdef FUNNY_BRANCHING
     466  /** Which variable (top bit if upper bound changing,
     467      next bit if on down branch */
     468  inline const int * variables() const
     469  { return variables_;}
     470  // New bound
     471  inline const double * newBounds() const
     472  { return newBounds_;}
     473  /// Number of bound changes
     474  inline int numberExtraChangedBounds() const
     475  { return numberExtraChangedBounds_;}
     476  /// Just apply extra bounds to one variable - COIN_DBL_MAX ignore
     477  int applyExtraBounds(int iColumn, double lower, double upper, int way) ;
     478  /// Deactivate bounds for branching
     479  void deactivate();
     480  /// Are active bounds for branching
     481  inline bool active() const
     482  { return (down_[1]!=-COIN_DBL_MAX);}
     483#endif
     484
    453485protected:
    454486  /// Lower [0] and upper [1] bounds for the down arm (way_ = -1)
     
    456488  /// Lower [0] and upper [1] bounds for the up arm (way_ = 1)
    457489  double up_[2];
     490#ifdef FUNNY_BRANCHING
     491  /** Which variable (top bit if upper bound changing)
     492      next bit if chnaging on down branch only */
     493  int * variables_;
     494  // New bound
     495  double * newBounds_;
     496  /// Number of Extra bound changes
     497  int numberExtraChangedBounds_;
     498#endif
    458499};
    459500
Note: See TracChangeset for help on using the changeset viewer.