Dip
0.92.4
|
#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). More... | |
void | decreaseEffCnt () |
Decrease the effectiveness count by 1 (or to -1 if it was positive). More... | |
double | calcNorm () |
void | sortVar () |
bool | isEquivalent (const DecompVar &dvar) |
bool | isDuplicate (const DecompVarList &vars) |
bool | doesSatisfyBounds (int denseLen, double *denseArr, const DecompSubModel &model, const double *lbs, const double *ubs) |
void | fillDenseArr (int len, double *arr) |
virtual void | print (double infinity, std::ostream *os=&std::cout, DecompApp *app=0) const |
virtual void | print (double infinity, 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 29 of file DecompVar.h.
|
inline |
Definition at line 154 of file DecompVar.h.
|
inline |
Definition at line 180 of file DecompVar.h.
|
inline |
Definition at line 192 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setConstant(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 217 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 241 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 266 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 287 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 309 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setConstant(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 330 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setConstant(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 352 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 374 of file DecompVar.h.
References calcNorm(), DECOMP_TEST_DUPINDEX, m_norm, m_s, m_strHash, CoinPackedVector::setVector(), sortVar(), and UtilCreateStringHash().
|
inline |
Definition at line 397 of file DecompVar.h.
References calcNorm(), DecompEpsilon, CoinPackedVector::getNumElements(), m_norm, m_s, m_strHash, sortVar(), UtilCreateStringHash(), and UtilPackedVectorFromDense().
|
inlinevirtual |
Definition at line 420 of file DecompVar.h.
|
private |
|
inline |
Definition at line 80 of file DecompVar.h.
References DECOMP_TEST_DUPINDEX, and UtilCreateStringHash().
|
inline |
Definition at line 97 of file DecompVar.h.
References DECOMP_TEST_DUPINDEX, and UtilCreateStringHash().
|
inline |
Definition at line 113 of file DecompVar.h.
References DecompEpsilon, UtilCreateStringHash(), and UtilPackedVectorFromDense().
|
inlinevirtual |
Definition at line 129 of file DecompVar.h.
|
inline |
Definition at line 47 of file DecompVar.h.
References m_varType.
|
inline |
Definition at line 50 of file DecompVar.h.
References m_origCost.
Referenced by DecompWaitingCol::getOrigCost().
|
inline |
Definition at line 53 of file DecompVar.h.
References m_redCost.
Referenced by DecompWaitingCol::getReducedCost(), and is_less_thanD::operator()().
|
inline |
Definition at line 56 of file DecompVar.h.
References m_effCnt.
|
inline |
Definition at line 59 of file DecompVar.h.
Referenced by DecompWaitingCol::getLowerBound().
|
inline |
Definition at line 62 of file DecompVar.h.
References COIN_DBL_MAX.
Referenced by DecompWaitingCol::getUpperBound().
|
inline |
|
inline |
Definition at line 68 of file DecompVar.h.
References m_blockId.
|
inline |
Definition at line 71 of file DecompVar.h.
References m_colMasterIndex.
|
inline |
Definition at line 74 of file DecompVar.h.
References m_norm.
|
inline |
Definition at line 78 of file DecompVar.h.
References m_varType.
|
inline |
Definition at line 81 of file DecompVar.h.
References m_colMasterIndex.
|
inline |
Definition at line 84 of file DecompVar.h.
References m_blockId.
|
inline |
Definition at line 87 of file DecompVar.h.
References m_redCost.
|
inline |
Definition at line 90 of file DecompVar.h.
References m_origCost.
|
inline |
Definition at line 94 of file DecompVar.h.
References m_effCnt.
|
inline |
Increase the effectiveness count by 1 (or to 1 if it was negative).
Return the new effectiveness count.
Definition at line 100 of file DecompVar.h.
References m_effCnt.
|
inline |
Decrease the effectiveness count by 1 (or to -1 if it was positive).
Return the new effectiveness count.
Definition at line 106 of file DecompVar.h.
References m_effCnt.
|
inline |
Definition at line 110 of file DecompVar.h.
References m_norm, m_s, and CoinPackedVectorBase::twoNorm().
Referenced by DecompVar().
|
inline |
Definition at line 114 of file DecompVar.h.
References m_s, and CoinPackedVector::sortIncrIndex().
Referenced by DecompVar().
|
inline |
Definition at line 118 of file DecompVar.h.
References CoinPackedVectorBase::isEquivalent(), and m_s.
|
inline |
Definition at line 122 of file DecompVar.h.
References getStrHash().
bool DecompVar::doesSatisfyBounds | ( | int | denseLen, |
double * | denseArr, | ||
const DecompSubModel & | model, | ||
const double * | lbs, | ||
const double * | ubs | ||
) |
void DecompVar::fillDenseArr | ( | int | len, |
double * | arr | ||
) |
|
virtual |
|
virtual |
Definition at line 165 of file DecompVar.h.
References m_blockId, m_colMasterIndex, m_effCnt, m_origCost, m_redCost, m_s, m_strHash, and m_varType.
|
inline |
Definition at line 46 of file DecompVar.h.
|
inline |
Definition at line 49 of file DecompVar.h.
|
inline |
Definition at line 52 of file DecompVar.h.
|
inline |
Definition at line 55 of file DecompVar.h.
|
inline |
Definition at line 58 of file DecompVar.h.
|
inline |
Definition at line 61 of file DecompVar.h.
|
inline |
Definition at line 65 of file DecompVar.h.
|
inline |
Definition at line 68 of file DecompVar.h.
References m_s.
void DecompVar::fillDenseArr | ( | int | len, |
double * | arr | ||
) |
|
virtual |
CoinPackedVector DecompVar::m_s |
Definition at line 33 of file DecompVar.h.
Referenced by calcNorm(), DecompVar(), isEquivalent(), operator=(), and sortVar().
|
private |
Definition at line 37 of file DecompVar.h.
Referenced by getVarType(), operator=(), and setVarType().
|
private |
Definition at line 38 of file DecompVar.h.
Referenced by getOriginalCost(), operator=(), and setOriginalCost().
|
private |
Definition at line 39 of file DecompVar.h.
Referenced by getReducedCost(), operator=(), and setReducedCost().
|
private |
Definition at line 40 of file DecompVar.h.
Referenced by decreaseEffCnt(), getEffectiveness(), increaseEffCnt(), operator=(), and resetEffectiveness().
|
private |
Definition at line 41 of file DecompVar.h.
Referenced by DecompVar(), getStrHash(), and operator=().
|
private |
Definition at line 42 of file DecompVar.h.
Referenced by getBlockId(), operator=(), and setBlockId().
|
private |
Definition at line 43 of file DecompVar.h.
Referenced by getColMasterIndex(), operator=(), and setColMasterIndex().
|
private |
Definition at line 44 of file DecompVar.h.
Referenced by calcNorm(), DecompVar(), and getNorm().
|
private |
Definition at line 43 of file DecompVar.h.