Dip 0.95.0
Loading...
Searching...
No Matches
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
25private:
26 DecompVar* m_var; //s the variable
27 CoinPackedVector* m_col; //(A'' s) the column
28
29public:
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() {
50 UTIL_DELPTR(m_col);
51 }
52 inline void deleteVar() {
53 UTIL_DELPTR(m_var);
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
65public:
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
DecompStatus
Definition Decomp.h:184
#define UTIL_DELPTR(x)
Definition UtilMacros.h:64
double getUpperBound() const
Definition DecompVar.h:62
double getOriginalCost() const
Definition DecompVar.h:50
double getLowerBound() const
Definition DecompVar.h:59
double getReducedCost() const
Definition DecompVar.h:53
DecompWaitingCol(DecompVar *var, CoinPackedVector *col)
CoinPackedVector * getColPtr() const
const double getLowerBound() const
DecompVar * getVarPtr() const
const double getOrigCost() const
const double getUpperBound() const
DecompWaitingCol(const DecompWaitingCol &rhs)
void setCol(CoinPackedVector *col)
bool setReducedCost(const double *u, const DecompStatus stat)
const double getReducedCost() const