Changeset 1212 for trunk/Cbc/src/CbcModel.hpp
 Timestamp:
 Aug 21, 2009 12:19:13 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/CbcModel.hpp
r1211 r1212 199 199 void branchAndBound(int doStatistics=0); 200 200 private: 201 201 202 /** \brief Evaluate a subproblem using cutting planes and heuristics 202 203 … … 562 563 /// Current time since start of branchAndbound 563 564 double getCurrentSeconds() const ; 565 566 /// Return true if maximum time reached 567 bool maximumSecondsReached() const ; 564 568 565 569 /** Set the … … 1158 1162 inline void setSolutionCount(int value) 1159 1163 { numberSolutions_=value;} 1164 /// Number of saved solutions (including best) 1165 int numberSavedSolutions() const; 1166 /// Maximum number of extra saved solutions 1167 inline int maximumSavedSolutions() const 1168 { return maximumSavedSolutions_;} 1169 /// Set maximum number of extra saved solutions 1170 void setMaximumSavedSolutions(int value); 1171 /// Return a saved solution (0==best)  NULL if off end 1172 const double * savedSolution(int which) const; 1173 /// Return a saved solution objective (0==best)  COIN_DBL_MAX if off end 1174 double savedSolutionObjective(int which) const; 1175 1160 1176 /** Current phase (so heuristics etc etc can find out). 1161 1177 0  initial solve … … 1691 1707 */ 1692 1708 void synchronizeHandlers(int makeDefault); 1693 1709 /// Save a solution to saved list 1710 void saveExtraSolution(const double * solution, double objectiveValue); 1711 /// Save a solution to best and move current to saved 1712 void saveBestSolution(const double * solution, double objectiveValue); 1713 /// Delete best and saved solutions 1714 void deleteSolutions(); 1694 1715 /// Encapsulates solver resolve 1695 1716 int resolve(OsiSolverInterface * solver); … … 1951 1972 /// Array holding the incumbent (best) solution. 1952 1973 double * bestSolution_; 1974 /// Arrays holding other solutions. 1975 double ** savedSolutions_; 1953 1976 1954 1977 /** Array holding the current solution. … … 1975 1998 /// Number of solutions 1976 1999 int numberSolutions_; 2000 /// Number of saved solutions 2001 int numberSavedSolutions_; 2002 /// Maximum number of saved solutions 2003 int maximumSavedSolutions_; 1977 2004 /** State of search 1978 2005 0  no solution
Note: See TracChangeset
for help on using the changeset viewer.