#include <DecompVar.h>
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) | |
DecompVar & | operator= (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 &) | |
DecompVar & | operator= (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 |
Definition at line 30 of file DecompVar.h.
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] |
Definition at line 191 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setConstant(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const std::vector< int > & | ind, | |
const std::vector< double > & | els, | |||
const double | redCost, | |||
const double | origCost | |||
) | [inline] |
Definition at line 216 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const std::vector< int > & | ind, | |
const std::vector< double > & | els, | |||
const double | redCost, | |||
const double | origCost, | |||
const DecompVarType | varType | |||
) | [inline] |
Definition at line 240 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | len, | |
const int * | ind, | |||
const double * | els, | |||
const double | origCost | |||
) | [inline] |
Definition at line 265 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | len, | |
const int * | ind, | |||
const double * | els, | |||
const double | origCost, | |||
const DecompVarType | varType | |||
) | [inline] |
Definition at line 286 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | len, | |
const int * | ind, | |||
const double | els, | |||
const double | origCost | |||
) | [inline] |
Definition at line 308 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setConstant(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | len, | |
const int * | ind, | |||
const double | els, | |||
const double | origCost, | |||
const DecompVarType | varType | |||
) | [inline] |
Definition at line 329 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setConstant(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | len, | |
const int * | ind, | |||
const double * | els, | |||
const double | redCost, | |||
const double | origCost | |||
) | [inline] |
Definition at line 351 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | len, | |
const int * | ind, | |||
const double * | els, | |||
const double | redCost, | |||
const double | origCost, | |||
const DecompVarType | varType | |||
) | [inline] |
Definition at line 373 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | denseLen, | |
const double * | denseArray, | |||
const double | redCost, | |||
const double | origCost, | |||
const DecompVarType | varType | |||
) | [inline] |
Definition at line 396 of file DecompVar.h.
References calcNorm(), DecompEpsilon, CoinPackedVector::getNumElements(), m_norm, m_s, m_strHash, sortVar(), UtilCreateStringHash(), and UtilPackedVectorFromDense().
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] |
Definition at line 80 of file DecompVar.h.
References DECOMP_TEST_DUPINDEX, m_s, m_strHash, CoinPackedVector::setVector(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | len, | |
const int * | ind, | |||
const double * | els, | |||
const double | redCost, | |||
const double | origCost | |||
) | [inline] |
Definition at line 97 of file DecompVar.h.
References DECOMP_TEST_DUPINDEX, m_s, m_strHash, CoinPackedVector::setVector(), and UtilCreateStringHash().
DecompVar::DecompVar | ( | const int | denseLen, | |
const double * | denseArray, | |||
const double | redCost, | |||
const double | origCost | |||
) | [inline] |
Definition at line 113 of file DecompVar.h.
References DecompEpsilon, CoinPackedVector::getNumElements(), m_s, m_strHash, UtilCreateStringHash(), and UtilPackedVectorFromDense().
virtual DecompVar::~DecompVar | ( | ) | [inline, virtual] |
Definition at line 129 of file DecompVar.h.
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] |
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] |
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.
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] |
Definition at line 34 of file DecompVar.h.
Referenced by calcNorm(), DecompVar(), isEquivalent(), operator=(), and sortVar().
DecompVarType DecompVar::m_varType [private] |
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] |
Definition at line 41 of file DecompVar.h.
Referenced by decreaseEffCnt(), getEffectiveness(), increaseEffCnt(), operator=(), and resetEffectiveness().
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().
int DecompVar::m_colMasterIndex [private] |
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.