Dip  0.92.4
DecompWaitingCol.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the Decomp Solver Framework. //
3 // //
4 // Decomp is distributed under the Common 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 // Copyright (C) 2002-2007, Lehigh University, Matthew Galati, and Ted Ralphs//
10 // All Rights Reserved. //
11 //===========================================================================//
12 
13 #ifndef DECOMP_WAITING_COL_INCLUDE
14 #define DECOMP_WAITING_COL_INCLUDE
15 
16 //class DecompVar;
17 #include "DecompVar.h"
18 
19 // ---------------------------------------------------------------------- //
20 class DecompWaitingCol {
21 private:
22  //THINK
23  //DecompWaitingCol & operator=(const DecompWaitingCol &);
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 decompStat 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
double getOriginalCost() const
Definition: DecompVar.h:50
DecompWaitingCol(DecompVar *var, CoinPackedVector *col)
bool setReducedCost(const double *u, const DecompStatus stat)
decompStat
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