CoinUtils  2.11.9
CoinPresolveMonitor.hpp
Go to the documentation of this file.
1 
2 #ifndef CoinPresolveMonitor_H
3 #define CoinPresolveMonitor_H
4 
30 public:
36 
42  CoinPresolveMonitor(const CoinPresolveMatrix *mtx, bool isRow, int k);
43 
49  CoinPresolveMonitor(const CoinPostsolveMatrix *mtx, bool isRow, int k);
50 
57  void checkAndTell(const CoinPresolveMatrix *mtx);
58 
65  void checkAndTell(const CoinPostsolveMatrix *mtx);
66 
67 private:
69  CoinPackedVector *extractRow(int i, const CoinPresolveMatrix *mtx) const;
70 
72  CoinPackedVector *extractCol(int j, const CoinPresolveMatrix *mtx) const;
73 
75  CoinPackedVector *extractRow(int i, const CoinPostsolveMatrix *mtx) const;
76 
78  CoinPackedVector *extractCol(int j, const CoinPostsolveMatrix *mtx) const;
79 
81  void checkAndTell(CoinPackedVector *curVec, double lb, double ub);
82 
84  bool isRow_;
85 
87  int ndx_;
88 
94 
96  double lb_;
97 
99  double ub_;
100 };
101 
102 #endif
103 
104 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
105 */
CoinPresolveMonitor::lb_
double lb_
Original row or column lower bound.
Definition: CoinPresolveMonitor.hpp:96
CoinPackedVector
Sparse Vector.
Definition: CoinPackedVector.hpp:123
CoinPresolveMonitor::isRow_
bool isRow_
True to monitor a row, false to monitor a column.
Definition: CoinPresolveMonitor.hpp:84
CoinPresolveMonitor
Monitor a row or column for modification.
Definition: CoinPresolveMonitor.hpp:29
CoinPresolveMonitor::origVec_
CoinPackedVector * origVec_
The original row or column.
Definition: CoinPresolveMonitor.hpp:93
CoinPresolveMonitor::checkAndTell
void checkAndTell(const CoinPresolveMatrix *mtx)
Compare the present row or column against the stored copy and report differences.
CoinPostsolveMatrix
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during postsol...
Definition: CoinPresolveMatrix.hpp:1552
CoinPresolveMonitor::ub_
double ub_
Original row or column upper bound.
Definition: CoinPresolveMonitor.hpp:99
CoinPresolveMonitor::CoinPresolveMonitor
CoinPresolveMonitor()
Default constructor.
CoinPresolveMonitor::extractRow
CoinPackedVector * extractRow(int i, const CoinPresolveMatrix *mtx) const
Extract a row from a CoinPresolveMatrix.
CoinPresolveMatrix
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during presolv...
Definition: CoinPresolveMatrix.hpp:905
CoinPresolveMonitor::ndx_
int ndx_
Row or column index.
Definition: CoinPresolveMonitor.hpp:87
CoinPresolveMonitor::extractCol
CoinPackedVector * extractCol(int j, const CoinPresolveMatrix *mtx) const
Extract a column from a CoinPresolveMatrix.