CbcBranchToFixLots.hpp
Go to the documentation of this file.
1 // Edwin 11/13/2009-- carved out of CbcBranchCut
2 #ifndef CbcBranchToFixLots_H
3 #define CbcBranchToFixLots_H
4 
5 #include "CbcBranchCut.hpp"
6 #include "CbcBranchBase.hpp"
7 #include "OsiRowCut.hpp"
8 #include "CoinPackedMatrix.hpp"
9 
18 
19 public:
20 
21  // Default Constructor
23 
30  CbcBranchToFixLots (CbcModel * model, double djTolerance,
31  double fractionFixed, int depth,
32  int numberClean = 0,
33  const char * mark = NULL,
34  bool alwaysCreate = false);
35 
36  // Copy constructor
38 
40  virtual CbcObject * clone() const;
41 
42  // Assignment operator
44 
45  // Destructor
47 
52  int shallWe() const;
53 
55  virtual double infeasibility(const OsiBranchingInformation * info,
56  int &preferredWay) const;
59  virtual bool canDoHeuristics() const {
60  return true;
61  }
62 
64  virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface * solver, const OsiBranchingInformation * info, int way) ;
66  virtual void redoSequenceEtc(CbcModel * model, int numberColumns, const int * originalColumns);
67 
68 
69 protected:
71 
73  double djTolerance_;
77  char * mark_;
79  CoinPackedMatrix matrixByRow_;
81  int depth_;
86 };
87 #endif
88