Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
opt
build
coinor-cbc
coinor-cbc-2.5.0
Cbc
src
CbcBranchToFixLots.hpp
Go to the documentation of this file.
1
// Edwin 11/13/2009-- carved out of CbcBranchCut
2
#ifndef CbcBranchToFixLots_H
3
#define CbcBranchToFixLots_H
4
5
#include "
CbcBranchCut.hpp
"
6
#include "
CbcBranchBase.hpp
"
7
#include "OsiRowCut.hpp"
8
#include "CoinPackedMatrix.hpp"
9
17
class
CbcBranchToFixLots
:
public
CbcBranchCut
{
18
19
public
:
20
21
// Default Constructor
22
CbcBranchToFixLots
();
23
30
CbcBranchToFixLots
(
CbcModel
*
model
,
double
djTolerance,
31
double
fractionFixed,
int
depth,
32
int
numberClean = 0,
33
const
char
* mark = NULL,
34
bool
alwaysCreate =
false
);
35
36
// Copy constructor
37
CbcBranchToFixLots
(
const
CbcBranchToFixLots
&);
38
40
virtual
CbcObject
*
clone
()
const
;
41
42
// Assignment operator
43
CbcBranchToFixLots
&
operator=
(
const
CbcBranchToFixLots
& rhs);
44
45
// Destructor
46
~CbcBranchToFixLots
();
47
52
int
shallWe
()
const
;
53
55
virtual
double
infeasibility
(
const
OsiBranchingInformation * info,
56
int
&
preferredWay
)
const
;
59
virtual
bool
canDoHeuristics
()
const
{
60
return
true
;
61
}
62
64
virtual
CbcBranchingObject
*
createCbcBranch
(OsiSolverInterface * solver,
const
OsiBranchingInformation * info,
int
way) ;
66
virtual
void
redoSequenceEtc
(
CbcModel
* model,
int
numberColumns,
const
int
* originalColumns);
67
68
69
protected
:
71
73
double
djTolerance_
;
75
double
fractionFixed_
;
77
char
*
mark_
;
79
CoinPackedMatrix
matrixByRow_
;
81
int
depth_
;
83
int
numberClean_
;
85
bool
alwaysCreate_
;
86
};
87
#endif
88
Generated on Tue Mar 1 2016 22:38:12 by
1.8.4