Cbc 2.10.12
Loading...
Searching...
No Matches
CbcBranchFollow2.hpp
Go to the documentation of this file.
1// $Id$
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
24
25class CbcFollowOn2 : public CbcObject {
26
27public:
28 // Default Constructor
30
34
35 // Copy constructor
37
39 virtual CbcObject *clone() const;
40
41 // Assignment operator
43
44 // Destructor
46
48 virtual double infeasibility(int &preferredWay) const;
49
51 virtual void feasibleRegion();
57 virtual int gutsOfFollowOn2(int &otherRow, int &preferredWay,
58 int &effectiveRhs) const;
59
61 inline int maximumRhs() const
62 {
63 return maximumRhs_;
64 }
65 inline void setMaximumRhs(int value)
66 {
67 maximumRhs_ = value;
68 }
69
70protected:
73 CoinPackedMatrix matrix_;
75 CoinPackedMatrix matrixByRow_;
77 int *rhs_;
80};
81
82#endif
Abstract branching object base class Now just difference with OsiBranchingObject.
virtual double infeasibility(int &preferredWay) const
Infeasibility - large is 0.5.
void setMaximumRhs(int value)
virtual CbcBranchingObject * createBranch(int way)
Creates a branching object.
int maximumRhs_
If >1 then allow cuts if effective rhs <= this.
CbcFollowOn2(const CbcFollowOn2 &)
CbcFollowOn2(CbcModel *model)
Useful constructor.
virtual int gutsOfFollowOn2(int &otherRow, int &preferredWay, int &effectiveRhs) const
As some computation is needed in more than one place - returns row.
CoinPackedMatrix matrixByRow_
Matrix by row.
int * rhs_
Possible rhs (if 0 then not possible)
CoinPackedMatrix matrix_
data Matrix
CbcFollowOn2 & operator=(const CbcFollowOn2 &rhs)
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)
virtual CbcObject * clone() const
Clone.
Simple Branch and bound class.
Definition CbcModel.hpp:100
CbcModel * model() const
Return model.
int preferredWay() const
If -1 down always chosen first, +1 up always, 0 normal.