CbcBranchDefaultDecision.hpp
Go to the documentation of this file.
1 // Edwin 11/10/2009-- carved out of CbcBranchActual
2 #ifndef CbcBranchDefaultDecision_H
3 #define CbcBranchDefaultDecision_H
4 
5 #include "CbcBranchBase.hpp"
13 public:
14  // Default Constructor
16 
17  // Copy constructor
19 
20  virtual ~CbcBranchDefaultDecision();
21 
23  virtual CbcBranchDecision * clone() const;
24 
26  virtual void initialize(CbcModel * model);
27 
47  virtual int betterBranch(CbcBranchingObject * thisOne,
48  CbcBranchingObject * bestSoFar,
49  double changeUp, int numInfUp,
50  double changeDn, int numInfDn);
52  virtual void setBestCriterion(double value);
53  virtual double getBestCriterion() const;
54 
61  virtual int
62  bestBranch (CbcBranchingObject ** objects, int numberObjects, int numberUnsatisfied,
63  double * changeUp, int * numberInfeasibilitiesUp,
64  double * changeDown, int * numberInfeasibilitiesDown,
65  double objectiveValue) ;
66 private:
67 
70 
72 
75 
77  double bestChangeUp_;
78 
81 
84 
87 
90 
91 };
92 
93 #endif
94 
Abstract branching object base class Now just difference with OsiBranchingObject. ...
virtual double getBestCriterion() const
double bestChangeDown_
Change down for best.
int bestNumberDown_
Number of infeasibilities for down.
CbcBranchDefaultDecision & operator=(const CbcBranchDefaultDecision &rhs)
Illegal Assignment operator.
virtual CbcBranchDecision * clone() const
Clone.
virtual ~CbcBranchDefaultDecision()
virtual int betterBranch(CbcBranchingObject *thisOne, CbcBranchingObject *bestSoFar, double changeUp, int numInfUp, double changeDn, int numInfDn)
Compare two branching objects.
double bestChangeUp_
Change up for best.
virtual void initialize(CbcModel *model)
Initialize, e.g. before the start of branch selection at a node.
Branching decision default class.
int bestNumberUp_
Number of infeasibilities for up.
CbcBranchingObject * bestObject_
Pointer to best branching object.
Simple Branch and bound class.
Definition: CbcModel.hpp:98
virtual void setBestCriterion(double value)
Sets or gets best criterion so far.
virtual int bestBranch(CbcBranchingObject **objects, int numberObjects, int numberUnsatisfied, double *changeUp, int *numberInfeasibilitiesUp, double *changeDown, int *numberInfeasibilitiesDown, double objectiveValue)
Compare N branching objects.