Changeset 706 for trunk/Cbc/src/CbcBranchActual.hpp
 Timestamp:
 Jul 25, 2007 11:54:56 AM (12 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/CbcBranchActual.hpp
r640 r706 46 46 /// Number of members 47 47 inline int numberMembers() const 48 {return numberMembers_;} ;48 {return numberMembers_;} 49 49 50 50 /// Number of Non SOS members i.e. fixing to zero is strong 51 51 inline int numberNonSOSMembers() const 52 {return numberNonSOSMembers_;} ;52 {return numberNonSOSMembers_;} 53 53 54 54 /// Members (indices in range 0 ... numberIntegers_1) 55 55 inline const int * members() const 56 {return members_;} ;56 {return members_;} 57 57 58 58 /** Type of each member i.e. which way is strong 0=non SOS, 1 =SOS, 59 59 index is 0 ... numberMembers_1 */ 60 60 inline const char type(int index) const 61 {if (type_) return type_[index]; else return 1;} ;61 {if (type_) return type_[index]; else return 1;} 62 62 63 63 /// Clique type  0 <=, 1 == 64 64 inline int cliqueType() const 65 {return cliqueType_;} ;65 {return cliqueType_;} 66 66 /// Redoes data when sequence numbers change 67 67 virtual void redoSequenceEtc(CbcModel * model, int numberColumns, const int * originalColumns); … … 142 142 /// Number of members 143 143 inline int numberMembers() const 144 {return numberMembers_;} ;144 {return numberMembers_;} 145 145 146 146 /// Members (indices in range 0 ... numberColumns1) 147 147 inline const int * members() const 148 {return members_;} ;148 {return members_;} 149 149 150 150 /// SOS type 151 151 inline int sosType() const 152 {return sosType_;} ;152 {return sosType_;} 153 153 154 154 /** Array of weights */ 155 155 inline const double * weights() const 156 { return weights_;} ;156 { return weights_;} 157 157 158 158 /** \brief Return true if object can take part in normal heuristics 159 159 */ 160 160 virtual bool canDoHeuristics() const 161 {return (sosType_==1&&integerValued_);} ;161 {return (sosType_==1&&integerValued_);} 162 162 /// Set whether set is integer valued or not 163 163 inline void setIntegerValued(bool yesNo) 164 { integerValued_=yesNo;} ;164 { integerValued_=yesNo;} 165 165 private: 166 166 /// data … … 254 254 /// Set column number 255 255 inline void setColumnNumber(int value) 256 { columnNumber_ = value;} ;256 { columnNumber_ = value;} 257 257 258 258 /** Reset variable bounds to their original values. … … 266 266 /// Original bounds 267 267 inline double originalLowerBound() const 268 { return originalLower_;} ;268 { return originalLower_;} 269 269 inline void setOriginalLowerBound(double value) 270 { originalLower_=value;} ;270 { originalLower_=value;} 271 271 inline double originalUpperBound() const 272 { return originalUpper_;} ;272 { return originalUpper_;} 273 273 inline void setOriginalUpperBound(double value) 274 { originalUpper_=value;} ;274 { originalUpper_=value;} 275 275 /// Breakeven e.g 0.7 > >= 0.7 go up first 276 276 inline double breakEven() const 277 { return breakEven_;} ;277 { return breakEven_;} 278 278 /// Set breakeven e.g 0.7 > >= 0.7 go up first 279 279 inline void setBreakEven(double value) 280 { breakEven_=value;} ;280 { breakEven_=value;} 281 281 282 282 … … 340 340 /// Number of members 341 341 inline int numberMembers() const 342 {return numberMembers_;} ;342 {return numberMembers_;} 343 343 344 344 /// Members (indices in range 0 ... numberColumns1) 345 345 inline const int * members() const 346 {return members_;} ;346 {return members_;} 347 347 /// Redoes data when sequence numbers change 348 348 virtual void redoSequenceEtc(CbcModel * model, int numberColumns, const int * originalColumns); … … 466 466 /// Down pseudo cost 467 467 inline double downPseudoCost() const 468 { return downPseudoCost_;} ;468 { return downPseudoCost_;} 469 469 /// Set down pseudo cost 470 470 inline void setDownPseudoCost(double value) 471 { downPseudoCost_=value;} ;471 { downPseudoCost_=value;} 472 472 473 473 /// Up pseudo cost 474 474 inline double upPseudoCost() const 475 { return upPseudoCost_;} ;475 { return upPseudoCost_;} 476 476 /// Set up pseudo cost 477 477 inline void setUpPseudoCost(double value) 478 { upPseudoCost_=value;} ;478 { upPseudoCost_=value;} 479 479 480 480 /// Up down separator 481 481 inline double upDownSeparator() const 482 { return upDownSeparator_;} ;482 { return upDownSeparator_;} 483 483 /// Set up down separator 484 484 inline void setUpDownSeparator(double value) 485 { upDownSeparator_=value;} ;485 { upDownSeparator_=value;} 486 486 487 487 /// Return "up" estimate … … 492 492 /// method  see below for details 493 493 inline int method() const 494 { return method_;} ;494 { return method_;} 495 495 /// Set method 496 496 inline void setMethod(int value) 497 { method_=value;} ;497 { method_=value;} 498 498 499 499 protected: … … 576 576 /// Change in guessed 577 577 inline double changeInGuessed() const 578 { return changeInGuessed_;} ;578 { return changeInGuessed_;} 579 579 /// Set change in guessed 580 580 inline void setChangeInGuessed(double value) 581 { changeInGuessed_=value;} ;581 { changeInGuessed_=value;} 582 582 protected: 583 583 /// Change in guessed objective value for next branch … … 759 759 */ 760 760 virtual int numberBranches() const 761 {return numberInSet_;} ;761 {return numberInSet_;} 762 762 /// Is this a two way object (1 down, +1 up) 763 763 virtual bool twoWay() const 764 { return false;} ;764 { return false;} 765 765 private: 766 766 /// order of branching  points back to CbcNWay
Note: See TracChangeset
for help on using the changeset viewer.