Main Page
Classes
Files
File List
File Members
opt
build
clp
clp-1.12.0
Clp
src
ClpDualRowPivot.hpp
Go to the documentation of this file.
1
/* $Id: ClpDualRowPivot.hpp 1525 2010-02-26 17:27:59Z mjs $ */
2
// Copyright (C) 2002, International Business Machines
3
// Corporation and others. All Rights Reserved.
4
#ifndef ClpDualRowPivot_H
5
#define ClpDualRowPivot_H
6
7
class
ClpSimplex
;
8
class
CoinIndexedVector;
9
10
//#############################################################################
11
20
class
ClpDualRowPivot
{
21
22
public
:
23
25
26
28
virtual
int
pivotRow
() = 0;
29
32
virtual
double
updateWeights
(CoinIndexedVector * input,
33
CoinIndexedVector * spare,
34
CoinIndexedVector * spare2,
35
CoinIndexedVector * updatedColumn) = 0;
36
43
/* FIXME: this was pure virtul (=0). Why? */
44
virtual
void
updatePrimalSolution
(CoinIndexedVector * input,
45
double
theta,
46
double
& changeInObjective) = 0;
57
virtual
void
saveWeights
(
ClpSimplex
*
model
,
int
mode);
59
virtual
void
checkAccuracy
();
61
virtual
void
unrollWeights
();
63
virtual
void
clearArrays
();
65
virtual
bool
looksOptimal
()
const
{
66
return
false
;
67
}
69
virtual
void
maximumPivotsChanged
() {}
71
72
74
75
ClpDualRowPivot
();
77
79
ClpDualRowPivot
(
const
ClpDualRowPivot
&);
80
82
ClpDualRowPivot
&
operator=
(
const
ClpDualRowPivot
& rhs);
83
85
virtual
~ClpDualRowPivot
();
86
88
virtual
ClpDualRowPivot
*
clone
(
bool
copyData =
true
)
const
= 0;
89
91
93
94
inline
ClpSimplex
*
model
() {
96
return
model_
;
97
}
98
100
inline
void
setModel
(
ClpSimplex
* newmodel) {
101
model_
= newmodel;
102
}
103
105
inline
int
type
() {
106
return
type_
;
107
}
108
110
111
//---------------------------------------------------------------------------
112
113
protected
:
115
116
ClpSimplex
*
model_
;
119
int
type_
;
121
};
122
123
#endif
Generated on Tue Mar 1 2016 22:38:51 by
1.8.4