Changeset 2464 for trunk/Cbc/src/CbcHeuristicDiveFractional.hpp
 Timestamp:
 Jan 3, 2019 2:03:23 PM (19 months ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/CbcHeuristicDiveFractional.hpp
r1899 r2464 14 14 class CbcHeuristicDiveFractional : public CbcHeuristicDive { 15 15 public: 16 // Default Constructor 17 CbcHeuristicDiveFractional(); 16 18 17 // Default Constructor18 CbcHeuristicDiveFractional ();19 // Constructor with model  assumed before cuts 20 CbcHeuristicDiveFractional(CbcModel &model); 19 21 20 // Constructor with model  assumed before cuts21 CbcHeuristicDiveFractional (CbcModel & model);22 // Copy constructor 23 CbcHeuristicDiveFractional(const CbcHeuristicDiveFractional &); 22 24 23 // Copy constructor24 CbcHeuristicDiveFractional ( const CbcHeuristicDiveFractional &);25 // Destructor 26 ~CbcHeuristicDiveFractional(); 25 27 26 // Destructor27 ~CbcHeuristicDiveFractional ();28 /// Clone 29 virtual CbcHeuristicDiveFractional *clone() const; 28 30 29 /// Clone30 virtual CbcHeuristicDiveFractional * clone() const;31 /// Assignment operator 32 CbcHeuristicDiveFractional &operator=(const CbcHeuristicDiveFractional &rhs); 31 33 32 /// Assignment operator33 CbcHeuristicDiveFractional & operator=(const CbcHeuristicDiveFractional& rhs);34 /// Create C++ lines to get to current state 35 virtual void generateCpp(FILE *fp); 34 36 35 /// Create C++ lines to get to current state 36 virtual void generateCpp( FILE * fp) ; 37 38 /// Selects the next variable to branch on 39 /** Returns true if all the fractional variables can be trivially 37 /// Selects the next variable to branch on 38 /** Returns true if all the fractional variables can be trivially 40 39 rounded. Returns false, if there is at least one fractional variable 41 40 that is not trivially roundable. In this case, the bestColumn 42 41 returned will not be trivially roundable. 43 42 */ 44 virtual bool selectVariableToBranch(OsiSolverInterface* solver, 45 const double* newSolution, 46 int& bestColumn, 47 int& bestRound); 48 43 virtual bool selectVariableToBranch(OsiSolverInterface *solver, 44 const double *newSolution, 45 int &bestColumn, 46 int &bestRound); 49 47 }; 50 48 51 49 #endif 52
Note: See TracChangeset
for help on using the changeset viewer.