CbcGeneral.hpp
Go to the documentation of this file.
1 // Edwin 11/10/2009-- carved out of CbcBranchActual
2 #ifndef CbcGeneral_H
3 #define CbcGeneral_H
4 
5 #include "CbcBranchBase.hpp"
11 class CbcGeneral : public CbcObject {
12 
13 public:
14 
15  // Default Constructor
16  CbcGeneral ();
17 
22 
23  // Copy constructor
24  CbcGeneral ( const CbcGeneral &);
25 
27  virtual CbcObject * clone() const = 0;
28 
29  // Assignment operator
30  CbcGeneral & operator=( const CbcGeneral& rhs);
31 
32  // Destructor
33  ~CbcGeneral ();
34 
36  virtual double infeasibility(const OsiBranchingInformation * info,
37  int &preferredWay) const;
38 
41  virtual void feasibleRegion() = 0;
42 
44  virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface * solver, const OsiBranchingInformation * info, int way) ;
45 
47  virtual void redoSequenceEtc(CbcModel * model, int numberColumns, const int * originalColumns) = 0;
48 
49 protected:
51 };
52 
53 #endif
54 
Abstract branching object base class Now just difference with OsiBranchingObject. ...
CbcGeneral & operator=(const CbcGeneral &rhs)
virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
Creates a branching object.
virtual void feasibleRegion()=0
For the variable(s) referenced by the object, look at the current solution and set bounds to match th...
int preferredWay() const
If -1 down always chosen first, +1 up always, 0 normal.
Definition: CbcObject.hpp:235
virtual double infeasibility(const OsiBranchingInformation *info, int &preferredWay) const
Infeasibility - large is 0.5.
virtual void feasibleRegion()=0
This looks at solution and sets bounds to contain solution.
virtual CbcObject * clone() const =0
Clone.
CbcModel * model() const
Return model.
Definition: CbcObject.hpp:230
virtual void redoSequenceEtc(CbcModel *model, int numberColumns, const int *originalColumns)=0
Redoes data when sequence numbers change.
Define a catch all class.
Definition: CbcGeneral.hpp:11
Simple Branch and bound class.
Definition: CbcModel.hpp:98