Dip-All  0.91.0
DecompWaitingCol.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the DIP Solver Framework. //
3 // //
4 // DIP is distributed under the Eclipse Public License as part of the //
5 // COIN-OR repository (http://www.coin-or.org). //
6 // //
7 // Author: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8 // //
9 // Conceptual Design: Matthew Galati, SAS Institute Inc. //
10 // Ted Ralphs, Lehigh University //
11 // //
12 // Copyright (C) 2002-2015, Lehigh University, Matthew Galati, Ted Ralphs //
13 // All Rights Reserved. //
14 //===========================================================================//
15 
16 #ifndef DECOMP_WAITING_COL_INCLUDE
17 #define DECOMP_WAITING_COL_INCLUDE
18 
19 #include "Decomp.h"
20 #include "DecompVar.h"
21 #include "UtilMacros.h"
22 
23 // ---------------------------------------------------------------------- //
25 
26 private:
27  DecompVar* m_var; //s the variable
28  CoinPackedVector* m_col; //(A'' s) the column
29 
30 public:
31  inline DecompVar* getVarPtr() const {
32  return m_var;
33  }
34  inline CoinPackedVector* getColPtr() const {
35  return m_col;
36  }
37  inline const double getReducedCost() const {
38  return m_var->getReducedCost();
39  }
40  inline const double getLowerBound() const {
41  return m_var->getLowerBound();
42  }
43  inline const double getUpperBound() const {
44  return m_var->getUpperBound();
45  }
46  inline const double getOrigCost() const {
47  return m_var->getOriginalCost();
48  }
49 
50  inline void deleteCol() {
52  }
53  inline void deleteVar() {
55  }
56  inline void clearVar() {
57  m_var = 0;
58  }
59  inline void setCol(CoinPackedVector* col) {
60  m_col = col;
61  }
62 
63  bool setReducedCost(const double* u,
64  const DecompStatus stat);
65 
66 public:
68  m_var = rhs.m_var;
69  m_col = rhs.m_col;
70  }
72  m_var(var),
73  m_col(col) {}
74 
76 };
77 
78 #endif
CoinPackedVector * m_col
double getReducedCost() const
Definition: DecompVar.h:54
const double getOrigCost() const
CoinPackedVector * getColPtr() const
DecompStatus
Definition: Decomp.h:146
double getOriginalCost() const
Definition: DecompVar.h:51
DecompWaitingCol(DecompVar *var, CoinPackedVector *col)
bool setReducedCost(const double *u, const DecompStatus stat)
double getUpperBound() const
Definition: DecompVar.h:63
const double getUpperBound() const
DecompVar * getVarPtr() const
DecompWaitingCol(const DecompWaitingCol &rhs)
#define UTIL_DELPTR(x)
Definition: UtilMacros.h:28
Sparse Vector.
const double getLowerBound() const
double getLowerBound() const
Definition: DecompVar.h:60
void setCol(CoinPackedVector *col)
const double getReducedCost() const