Dip  0.92.4
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 // Authors: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8 // Ted Ralphs, Lehigh University (ted@lehigh.edu) //
9 // Jiadong Wang, Lehigh University (jiw408@lehigh.edu) //
10 // //
11 // Copyright (C) 2002-2019, Lehigh University, Matthew Galati, Ted Ralphs //
12 // All Rights Reserved. //
13 //===========================================================================//
14 
15 #ifndef DECOMP_WAITING_COL_INCLUDE
16 #define DECOMP_WAITING_COL_INCLUDE
17 
18 #include "Decomp.h"
19 #include "DecompVar.h"
20 #include "UtilMacros.h"
21 
22 // ---------------------------------------------------------------------- //
24 
25 private:
26  DecompVar* m_var; //s the variable
27  CoinPackedVector* m_col; //(A'' s) the column
28 
29 public:
30  inline DecompVar* getVarPtr() const {
31  return m_var;
32  }
33  inline CoinPackedVector* getColPtr() const {
34  return m_col;
35  }
36  inline const double getReducedCost() const {
37  return m_var->getReducedCost();
38  }
39  inline const double getLowerBound() const {
40  return m_var->getLowerBound();
41  }
42  inline const double getUpperBound() const {
43  return m_var->getUpperBound();
44  }
45  inline const double getOrigCost() const {
46  return m_var->getOriginalCost();
47  }
48 
49  inline void deleteCol() {
51  }
52  inline void deleteVar() {
54  }
55  inline void clearVar() {
56  m_var = 0;
57  }
58  inline void setCol(CoinPackedVector* col) {
59  m_col = col;
60  }
61 
62  bool setReducedCost(const double* u,
63  const DecompStatus stat);
64 
65 public:
67  m_var = rhs.m_var;
68  m_col = rhs.m_col;
69  }
71  m_var(var),
72  m_col(col) {}
73 
75 };
76 
77 #endif
CoinPackedVector * m_col
double getReducedCost() const
Definition: DecompVar.h:53
const double getOrigCost() const
CoinPackedVector * getColPtr() const
DecompStatus
Definition: Decomp.h:184
double getOriginalCost() const
Definition: DecompVar.h:50
DecompWaitingCol(DecompVar *var, CoinPackedVector *col)
bool setReducedCost(const double *u, const DecompStatus stat)
double getUpperBound() const
Definition: DecompVar.h:62
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:59
void setCol(CoinPackedVector *col)
const double getReducedCost() const