Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcBranchFollow2.hpp
Go to the documentation of this file.
1 // $Id: CbcBranchFollow2.hpp 1574 2011-01-05 01:13:55Z lou $
2 // Copyright (C) 2004, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef CbcBranchFollowOn2_H
7 #define CbcBranchFollowOn2_H
8 
9 #include "CbcBranchActual.hpp"
10 #include "CoinPackedMatrix.hpp"
11 
12 
26 class CbcFollowOn2 : public CbcObject {
27 
28 public:
29 
30  // Default Constructor
31  CbcFollowOn2 ();
32 
36 
37  // Copy constructor
38  CbcFollowOn2 ( const CbcFollowOn2 &);
39 
41  virtual CbcObject * clone() const;
42 
43  // Assignment operator
44  CbcFollowOn2 & operator=( const CbcFollowOn2& rhs);
45 
46  // Destructor
47  ~CbcFollowOn2 ();
48 
50  virtual double infeasibility(int & preferredWay) const;
51 
53  virtual void feasibleRegion();
55  virtual CbcBranchingObject * createBranch(int way) ;
59  virtual int gutsOfFollowOn2(int & otherRow, int & preferredWay,
60  int & effectiveRhs) const;
61 
63  inline int maximumRhs() const
64  { return maximumRhs_;}
65  inline void setMaximumRhs(int value)
66  { maximumRhs_=value;}
67 protected:
74  int * rhs_;
77 };
78 
79 #endif
virtual void feasibleRegion()
This looks at solution and sets bounds to contain solution.
int maximumRhs() const
get and set for maximum rhws (affects cuts as branch)
CbcFollowOn2 & operator=(const CbcFollowOn2 &rhs)
int preferredWay() const
If -1 down always chosen first, +1 up always, 0 normal.
Definition: CbcObject.hpp:245
virtual CbcObject * clone() const
Clone.
double infeasibility() const
Return infeasibility.
CbcModel * model() const
Return model.
Definition: CbcObject.hpp:240
Abstract branching object base class Now just difference with OsiBranchingObject. ...
virtual int gutsOfFollowOn2(int &otherRow, int &preferredWay, int &effectiveRhs) const
As some computation is needed in more than one place - returns row.
Sparse Matrix Base Class.
int * rhs_
Possible rhs (if 0 then not possible)
virtual CbcBranchingObject * createBranch(int way)
Creates a branching object.
int maximumRhs_
If >1 then allow cuts if effective rhs <= this.
Define a follow on class.
CoinPackedMatrix matrixByRow_
Matrix by row.
Simple Branch and bound class.
Definition: CbcModel.hpp:101
CoinPackedMatrix matrix_
data Matrix
void setMaximumRhs(int value)