Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
examples
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
25
class
CbcFollowOn2
:
public
CbcObject {
26
27
public
:
28
// Default Constructor
29
CbcFollowOn2
();
30
33
CbcFollowOn2
(
CbcModel
*
model
);
34
35
// Copy constructor
36
CbcFollowOn2
(
const
CbcFollowOn2
&);
37
39
virtual
CbcObject *
clone
()
const
;
40
41
// Assignment operator
42
CbcFollowOn2
&
operator=
(
const
CbcFollowOn2
&rhs);
43
44
// Destructor
45
~CbcFollowOn2
();
46
48
virtual
double
infeasibility
(
int
&
preferredWay
)
const
;
49
51
virtual
void
feasibleRegion
();
53
virtual
CbcBranchingObject
*
createBranch
(
int
way
);
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
70
protected
:
73
CoinPackedMatrix
matrix_
;
75
CoinPackedMatrix
matrixByRow_
;
77
int
*
rhs_
;
79
int
maximumRhs_
;
80
};
81
82
#endif
CbcBranchActual.hpp
way
int way() const
model
CbcModel * model() const
Return model.
Definition
CbcObject.hpp:252
preferredWay
int preferredWay() const
If -1 down always chosen first, +1 up always, 0 normal.
Definition
CbcObject.hpp:258
CbcBranchingObject
Abstract branching object base class Now just difference with OsiBranchingObject.
Definition
CbcBranchingObject.hpp:51
CbcFollowOn2::infeasibility
virtual double infeasibility(int &preferredWay) const
Infeasibility - large is 0.5.
CbcFollowOn2::setMaximumRhs
void setMaximumRhs(int value)
Definition
CbcBranchFollow2.hpp:65
CbcFollowOn2::createBranch
virtual CbcBranchingObject * createBranch(int way)
Creates a branching object.
CbcFollowOn2::maximumRhs_
int maximumRhs_
If >1 then allow cuts if effective rhs <= this.
Definition
CbcBranchFollow2.hpp:79
CbcFollowOn2::CbcFollowOn2
CbcFollowOn2(const CbcFollowOn2 &)
CbcFollowOn2::~CbcFollowOn2
~CbcFollowOn2()
CbcFollowOn2::CbcFollowOn2
CbcFollowOn2(CbcModel *model)
Useful constructor.
CbcFollowOn2::CbcFollowOn2
CbcFollowOn2()
CbcFollowOn2::gutsOfFollowOn2
virtual int gutsOfFollowOn2(int &otherRow, int &preferredWay, int &effectiveRhs) const
As some computation is needed in more than one place - returns row.
CbcFollowOn2::matrixByRow_
CoinPackedMatrix matrixByRow_
Matrix by row.
Definition
CbcBranchFollow2.hpp:75
CbcFollowOn2::rhs_
int * rhs_
Possible rhs (if 0 then not possible).
Definition
CbcBranchFollow2.hpp:77
CbcFollowOn2::matrix_
CoinPackedMatrix matrix_
data Matrix
Definition
CbcBranchFollow2.hpp:73
CbcFollowOn2::operator=
CbcFollowOn2 & operator=(const CbcFollowOn2 &rhs)
CbcFollowOn2::feasibleRegion
virtual void feasibleRegion()
This looks at solution and sets bounds to contain solution.
CbcFollowOn2::maximumRhs
int maximumRhs() const
get and set for maximum rhws (affects cuts as branch)
Definition
CbcBranchFollow2.hpp:61
CbcFollowOn2::clone
virtual CbcObject * clone() const
Clone.
CbcModel
Simple Branch and bound class.
Definition
CbcModel.hpp:100
Generated by
1.17.0