DecompVar Class Reference

#include <DecompVar.h>

Collaboration diagram for DecompVar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

DecompVarType getVarType () const
double getOriginalCost () const
double getReducedCost () const
int getEffectiveness () const
double getLowerBound () const
double getUpperBound () const
std::string getStrHash () const
int getBlockId () const
int getColMasterIndex () const
double getNorm () const
void setVarType (const DecompVarType varType)
void setColMasterIndex (const int colIndex)
void setBlockId (const int blockId)
void setReducedCost (const double redCost)
void setOriginalCost (const double origCost)
void resetEffectiveness ()
void increaseEffCnt ()
 Increase the effectiveness count by 1 (or to 1 if it was negative).
void decreaseEffCnt ()
 Decrease the effectiveness count by 1 (or to -1 if it was positive).
double calcNorm ()
void sortVar ()
bool isEquivalent (const DecompVar &dvar)
bool isDuplicate (const DecompVarList &vars)
bool doesSatisfyBounds (int denseLen, double *denseArr, const DecompAlgoModel &model, const double *lbs, const double *ubs)
void fillDenseArr (int len, double *arr)
virtual void print (std::ostream *os=&std::cout, DecompApp *app=0) const
virtual void print (std::ostream *os, const std::vector< std::string > &colNames, const double *value=NULL) const
double getOriginalCost () const
double getReducedCost () const
double getEffectiveness () const
double getLowerBound () const
double getUpperBound () const
string getStrHash () const
void setReducedCost (const double redCost)
bool isEquivalent (const DecompVar &dvar)
void fillDenseArr (int len, double *arr)
virtual void print (ostream *os=&cout, DecompApp *app=0) const
 DecompVar (const vector< int > &ind, const vector< double > &els, const double redCost, const double origCost)
 DecompVar (const int len, const int *ind, const double *els, const double redCost, const double origCost)
 DecompVar (const int denseLen, const double *denseArray, const double redCost, const double origCost)
virtual ~DecompVar ()
Copy Constructors



 DecompVar (const DecompVar &source)
DecompVaroperator= (const DecompVar &rhs)
 DecompVar ()
 DecompVar (const std::vector< int > &ind, const double els, const double redCost, const double origCost, const DecompVarType varType)
 DecompVar (const std::vector< int > &ind, const std::vector< double > &els, const double redCost, const double origCost)
 DecompVar (const std::vector< int > &ind, const std::vector< double > &els, const double redCost, const double origCost, const DecompVarType varType)
 DecompVar (const int len, const int *ind, const double *els, const double origCost)
 DecompVar (const int len, const int *ind, const double *els, const double origCost, const DecompVarType varType)
 DecompVar (const int len, const int *ind, const double els, const double origCost)
 DecompVar (const int len, const int *ind, const double els, const double origCost, const DecompVarType varType)
 DecompVar (const int len, const int *ind, const double *els, const double redCost, const double origCost)
 DecompVar (const int len, const int *ind, const double *els, const double redCost, const double origCost, const DecompVarType varType)
 DecompVar (const int denseLen, const double *denseArray, const double redCost, const double origCost, const DecompVarType varType)
virtual ~DecompVar ()

Public Attributes

CoinPackedVector m_s

Private Member Functions

 DecompVar (const DecompVar &)
DecompVaroperator= (const DecompVar &)

Private Attributes

DecompVarType m_varType
double m_origCost
double m_redCost
int m_effCnt
std::string m_strHash
int m_blockId
int m_colMasterIndex
double m_norm
string m_strHash

Detailed Description

Definition at line 30 of file DecompVar.h.


Constructor & Destructor Documentation

DecompVar::DecompVar ( const DecompVar source  )  [inline]

Definition at line 153 of file DecompVar.h.

DecompVar::DecompVar (  )  [inline]

Definition at line 179 of file DecompVar.h.

DecompVar::DecompVar ( const std::vector< int > &  ind,
const double  els,
const double  redCost,
const double  origCost,
const DecompVarType  varType 
) [inline]
DecompVar::DecompVar ( const std::vector< int > &  ind,
const std::vector< double > &  els,
const double  redCost,
const double  origCost 
) [inline]
DecompVar::DecompVar ( const std::vector< int > &  ind,
const std::vector< double > &  els,
const double  redCost,
const double  origCost,
const DecompVarType  varType 
) [inline]
DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  origCost 
) [inline]
DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  origCost,
const DecompVarType  varType 
) [inline]
DecompVar::DecompVar ( const int  len,
const int *  ind,
const double  els,
const double  origCost 
) [inline]
DecompVar::DecompVar ( const int  len,
const int *  ind,
const double  els,
const double  origCost,
const DecompVarType  varType 
) [inline]
DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  redCost,
const double  origCost 
) [inline]
DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  redCost,
const double  origCost,
const DecompVarType  varType 
) [inline]
DecompVar::DecompVar ( const int  denseLen,
const double *  denseArray,
const double  redCost,
const double  origCost,
const DecompVarType  varType 
) [inline]
virtual DecompVar::~DecompVar (  )  [inline, virtual]

Definition at line 419 of file DecompVar.h.

DecompVar::DecompVar ( const DecompVar  )  [private]
DecompVar::DecompVar ( const vector< int > &  ind,
const vector< double > &  els,
const double  redCost,
const double  origCost 
) [inline]
DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  redCost,
const double  origCost 
) [inline]
DecompVar::DecompVar ( const int  denseLen,
const double *  denseArray,
const double  redCost,
const double  origCost 
) [inline]
virtual DecompVar::~DecompVar (  )  [inline, virtual]

Definition at line 129 of file DecompVar.h.


Member Function Documentation

DecompVarType DecompVar::getVarType (  )  const [inline]

Definition at line 48 of file DecompVar.h.

References m_varType.

double DecompVar::getOriginalCost (  )  const [inline]

Definition at line 51 of file DecompVar.h.

References m_origCost.

Referenced by DecompWaitingCol::getOrigCost().

double DecompVar::getReducedCost (  )  const [inline]

Definition at line 54 of file DecompVar.h.

References m_redCost.

Referenced by DecompWaitingCol::getReducedCost(), and is_less_thanD::operator()().

int DecompVar::getEffectiveness (  )  const [inline]

Definition at line 57 of file DecompVar.h.

References m_effCnt.

double DecompVar::getLowerBound (  )  const [inline]

Definition at line 60 of file DecompVar.h.

Referenced by DecompWaitingCol::getLowerBound().

double DecompVar::getUpperBound (  )  const [inline]

Definition at line 63 of file DecompVar.h.

References DecompInf.

Referenced by DecompWaitingCol::getUpperBound().

std::string DecompVar::getStrHash (  )  const [inline]

Definition at line 66 of file DecompVar.h.

References m_strHash.

Referenced by isDuplicate().

int DecompVar::getBlockId (  )  const [inline]

Definition at line 69 of file DecompVar.h.

References m_blockId.

int DecompVar::getColMasterIndex (  )  const [inline]

Definition at line 72 of file DecompVar.h.

References m_colMasterIndex.

double DecompVar::getNorm (  )  const [inline]

Definition at line 75 of file DecompVar.h.

References m_norm.

void DecompVar::setVarType ( const DecompVarType  varType  )  [inline]

Definition at line 79 of file DecompVar.h.

References m_varType.

void DecompVar::setColMasterIndex ( const int  colIndex  )  [inline]

Definition at line 82 of file DecompVar.h.

References m_colMasterIndex.

void DecompVar::setBlockId ( const int  blockId  )  [inline]

Definition at line 85 of file DecompVar.h.

References m_blockId.

void DecompVar::setReducedCost ( const double  redCost  )  [inline]

Definition at line 88 of file DecompVar.h.

References m_redCost.

void DecompVar::setOriginalCost ( const double  origCost  )  [inline]

Definition at line 91 of file DecompVar.h.

References m_origCost.

void DecompVar::resetEffectiveness (  )  [inline]

Definition at line 95 of file DecompVar.h.

References m_effCnt.

void DecompVar::increaseEffCnt (  )  [inline]

Increase the effectiveness count by 1 (or to 1 if it was negative).

Return the new effectiveness count.

Definition at line 101 of file DecompVar.h.

References m_effCnt.

void DecompVar::decreaseEffCnt (  )  [inline]

Decrease the effectiveness count by 1 (or to -1 if it was positive).

Return the new effectiveness count.

Definition at line 107 of file DecompVar.h.

References m_effCnt.

double DecompVar::calcNorm (  )  [inline]

Definition at line 111 of file DecompVar.h.

References m_norm, m_s, and CoinPackedVectorBase::twoNorm().

Referenced by DecompVar().

void DecompVar::sortVar (  )  [inline]

Definition at line 115 of file DecompVar.h.

References m_s, and CoinPackedVector::sortIncrIndex().

Referenced by DecompVar().

bool DecompVar::isEquivalent ( const DecompVar dvar  )  [inline]

Definition at line 119 of file DecompVar.h.

References CoinPackedVectorBase::isEquivalent(), and m_s.

bool DecompVar::isDuplicate ( const DecompVarList vars  )  [inline]

Definition at line 123 of file DecompVar.h.

References getStrHash().

bool DecompVar::doesSatisfyBounds ( int  denseLen,
double *  denseArr,
const DecompAlgoModel model,
const double *  lbs,
const double *  ubs 
)
void DecompVar::fillDenseArr ( int  len,
double *  arr 
)
virtual void DecompVar::print ( std::ostream *  os = &std::cout,
DecompApp app = 0 
) const [virtual]
virtual void DecompVar::print ( std::ostream *  os,
const std::vector< std::string > &  colNames,
const double *  value = NULL 
) const [virtual]
DecompVar& DecompVar::operator= ( const DecompVar rhs  )  [inline]

Definition at line 164 of file DecompVar.h.

References m_blockId, m_colMasterIndex, m_effCnt, m_origCost, m_redCost, m_s, m_strHash, and m_varType.

DecompVar& DecompVar::operator= ( const DecompVar  )  [private]
double DecompVar::getOriginalCost (  )  const [inline]

Definition at line 46 of file DecompVar.h.

References m_origCost.

double DecompVar::getReducedCost (  )  const [inline]

Definition at line 49 of file DecompVar.h.

References m_redCost.

double DecompVar::getEffectiveness (  )  const [inline]

Definition at line 52 of file DecompVar.h.

References m_effCnt.

double DecompVar::getLowerBound (  )  const [inline]

Definition at line 55 of file DecompVar.h.

double DecompVar::getUpperBound (  )  const [inline]

Definition at line 58 of file DecompVar.h.

References DecompInf.

string DecompVar::getStrHash (  )  const [inline]

Definition at line 61 of file DecompVar.h.

References m_strHash.

void DecompVar::setReducedCost ( const double  redCost  )  [inline]

Definition at line 65 of file DecompVar.h.

References m_redCost.

bool DecompVar::isEquivalent ( const DecompVar dvar  )  [inline]

Definition at line 68 of file DecompVar.h.

References CoinPackedVectorBase::isEquivalent(), and m_s.

void DecompVar::fillDenseArr ( int  len,
double *  arr 
)
virtual void DecompVar::print ( ostream *  os = &cout,
DecompApp app = 0 
) const [virtual]

Member Data Documentation

Definition at line 34 of file DecompVar.h.

Referenced by calcNorm(), DecompVar(), isEquivalent(), operator=(), and sortVar().

Definition at line 38 of file DecompVar.h.

Referenced by getVarType(), operator=(), and setVarType().

double DecompVar::m_origCost [private]

Definition at line 39 of file DecompVar.h.

Referenced by getOriginalCost(), operator=(), and setOriginalCost().

double DecompVar::m_redCost [private]

Definition at line 40 of file DecompVar.h.

Referenced by getReducedCost(), operator=(), and setReducedCost().

int DecompVar::m_effCnt [private]
std::string DecompVar::m_strHash [private]

Definition at line 42 of file DecompVar.h.

Referenced by DecompVar(), getStrHash(), and operator=().

int DecompVar::m_blockId [private]

Definition at line 43 of file DecompVar.h.

Referenced by getBlockId(), operator=(), and setBlockId().

Definition at line 44 of file DecompVar.h.

Referenced by getColMasterIndex(), operator=(), and setColMasterIndex().

double DecompVar::m_norm [private]

Definition at line 45 of file DecompVar.h.

Referenced by calcNorm(), DecompVar(), and getNorm().

string DecompVar::m_strHash [private]

Definition at line 43 of file DecompVar.h.


The documentation for this class was generated from the following files:

Generated on 12 Mar 2015 for Dip-All by  doxygen 1.6.1