coin-Cgl
Main Page
Namespaces
Classes
Files
File List
File Members
opt
build
coinor-cgl
coinor-cgl-0.55.0
Cgl
src
CglDuplicateRow
CglDuplicateRow.hpp
Go to the documentation of this file.
1
// Copyright (C) 2004, International Business Machines
2
// Corporation and others. All Rights Reserved.
3
#ifndef CglDuplicateRow_H
4
#define CglDuplicateRow_H
5
6
#include <string>
7
8
#include "
CglCutGenerator.hpp
"
9
class
CglStored
;
10
12
class
CglDuplicateRow
:
public
CglCutGenerator
{
13
14
public
:
15
16
37
virtual
void
generateCuts
(
const
OsiSolverInterface & si, OsiCuts & cs,
38
const
CglTreeInfo
info =
CglTreeInfo
())
const
;
58
CglStored
*
outDuplicates
( OsiSolverInterface * solver);
59
61
64
inline
const
int
*
duplicate
()
const
66
{
return
duplicate_
;}
68
inline
int
sizeDynamic
()
const
69
{
return
sizeDynamic_
;}
71
inline
int
numberOriginalRows
()
const
72
{
return
matrix_
.getNumRows();}
74
77
inline
int
logLevel
()
const
79
{
return
logLevel_
;}
80
inline
void
setLogLevel
(
int
value)
81
{
logLevel_
= value;}
83
84
87
inline
int
maximumRhs
()
const
89
{
return
maximumRhs_
;}
91
inline
void
setMaximumRhs
(
int
value)
92
{
maximumRhs_
=value;}
94
97
inline
int
maximumDominated
()
const
99
{
return
maximumDominated_
;}
101
inline
void
setMaximumDominated
(
int
value)
102
{
maximumDominated_
=value;}
104
106
inline
int
mode
()
const
108
{
return
mode_
;}
110
inline
void
setMode
(
int
value)
111
{
mode_
=value;}
113
116
CglDuplicateRow
();
118
120
CglDuplicateRow
(OsiSolverInterface * solver);
121
123
CglDuplicateRow
(
124
const
CglDuplicateRow
& rhs);
125
127
virtual
CglCutGenerator
*
clone
()
const
;
128
130
CglDuplicateRow
&
131
operator=
(
132
const
CglDuplicateRow
& rhs);
133
135
virtual
136
~CglDuplicateRow
();
138
virtual
std::string
generateCpp
( FILE * fp);
139
141
virtual
void
refreshSolver
(OsiSolverInterface * solver);
143
144
protected
:
145
146
147
// Protected member data
148
151
CoinPackedMatrix
matrix_
;
154
CoinPackedMatrix
matrixByRow_
;
156
int
*
rhs_
;
158
mutable
int
*
duplicate_
;
160
int
*
lower_
;
162
mutable
CglStored
*
storedCuts_
;
164
int
maximumDominated_
;
166
int
maximumRhs_
;
168
mutable
int
sizeDynamic_
;
170
int
mode_
;
172
int
logLevel_
;
174
};
175
#endif
Generated on Tue Mar 1 2016 22:35:38 for coin-Cgl by
1.8.4