Cgl 0.59.7

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClpDualRowPivot.hpp
Go to the documentation of this file.
1 /* $Id: ClpDualRowPivot.hpp 2070 2014-11-18 11:12:54Z forrest $ */
2 // Copyright (C) 2002, 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 ClpDualRowPivot_H
7 #define ClpDualRowPivot_H
8
9 class ClpSimplex;
10 class CoinIndexedVector;
11
12 //#############################################################################
13
22 class ClpDualRowPivot {
23
24 public:
25
27
28
30 virtual int pivotRow() = 0;
31
34 virtual double updateWeights(CoinIndexedVector * input,
35 CoinIndexedVector * spare,
36 CoinIndexedVector * spare2,
37 CoinIndexedVector * updatedColumn) = 0;
38
45 /* FIXME: this was pure virtul (=0). Why? */
46 virtual void updatePrimalSolution(CoinIndexedVector * input,
47 double theta,
48 double & changeInObjective) = 0;
61 virtual void saveWeights(ClpSimplex * model, int mode);
63 virtual void checkAccuracy();
65 virtual void unrollWeights();
67 virtual void clearArrays();
69 virtual bool looksOptimal() const {
70 return false;
71 }
73 virtual void maximumPivotsChanged() {}
75
76
78
79 ClpDualRowPivot();
81
83 ClpDualRowPivot(const ClpDualRowPivot &);
84
86 ClpDualRowPivot & operator=(const ClpDualRowPivot& rhs);
87
89 virtual ~ClpDualRowPivot ();
90
92 virtual ClpDualRowPivot * clone(bool copyData = true) const = 0;
93
95
97
98 inline ClpSimplex * model() {
100 return model_;
101 }
102
104 inline void setModel(ClpSimplex * newmodel) {
105 model_ = newmodel;
106 }
107
109 inline int type() {
110 return type_;
111 }
112
114
115 //---------------------------------------------------------------------------
116
117 protected:
119
120 ClpSimplex * model_;
123 int type_;
125 };
126 #ifndef CLP_DUAL_COLUMN_MULTIPLIER
127 //#define CLP_DUAL_COLUMN_MULTIPLIER 0.99999
128 #endif
129 #endif
ClpDualRowPivot::clone
virtual ClpDualRowPivot * clone(bool copyData=true) const =0
Clone.
ClpDualRowPivot::updateWeights
virtual double updateWeights(CoinIndexedVector *input, CoinIndexedVector *spare, CoinIndexedVector *spare2, CoinIndexedVector *updatedColumn)=0
Updates weights and returns pivot alpha.
ClpDualRowPivot::setModel
void setModel(ClpSimplex *newmodel)
Sets model (normally to NULL)
Definition: ClpDualRowPivot.hpp:104
ClpDualRowPivot::model_
ClpSimplex * model_
Pointer to model.
Definition: ClpDualRowPivot.hpp:121
ClpDualRowPivot::ClpDualRowPivot
ClpDualRowPivot()
Default Constructor.
ClpSimplex
This solves LPs using the simplex method.
Definition: ClpSimplex.hpp:70
CoinIndexedVector
Indexed Vector.
Definition: CoinIndexedVector.hpp:104
ClpDualRowPivot::clearArrays
virtual void clearArrays()
Gets rid of all arrays (may be empty)
ClpDualRowPivot::saveWeights
virtual void saveWeights(ClpSimplex *model, int mode)
Saves any weights round factorization as pivot rows may change Will be empty unless steepest edge (wi...
ClpDualRowPivot::updatePrimalSolution
virtual void updatePrimalSolution(CoinIndexedVector *input, double theta, double &changeInObjective)=0
Updates primal solution (and maybe list of candidates) Uses input vector which it deletes Computes ch...
ClpDualRowPivot::checkAccuracy
virtual void checkAccuracy()
checks accuracy and may re-initialize (may be empty)
ClpDualRowPivot::~ClpDualRowPivot
virtual ~ClpDualRowPivot()
Destructor.
ClpDualRowPivot::maximumPivotsChanged
virtual void maximumPivotsChanged()
Called when maximum pivots changes.
Definition: ClpDualRowPivot.hpp:73
ClpDualRowPivot::looksOptimal
virtual bool looksOptimal() const
Returns true if would not find any row.
Definition: ClpDualRowPivot.hpp:69
ClpDualRowPivot::type
int type()
Returns type (above 63 is extra information)
Definition: ClpDualRowPivot.hpp:109
ClpDualRowPivot::type_
int type_
Type of row pivot algorithm.
Definition: ClpDualRowPivot.hpp:123
ClpDualRowPivot
Dual Row Pivot Abstract Base Class.
Definition: ClpDualRowPivot.hpp:22
ClpDualRowPivot::unrollWeights
virtual void unrollWeights()
Gets rid of last update (may be empty)
ClpDualRowPivot::operator=
ClpDualRowPivot & operator=(const ClpDualRowPivot &rhs)
Assignment operator.
ClpDualRowPivot::pivotRow
virtual int pivotRow()=0
Returns pivot row, -1 if none.
ClpDualRowPivot::model
ClpSimplex * model()
Returns model.
Definition: ClpDualRowPivot.hpp:99