Dip  0.92.4
Public Member Functions | Public Attributes | List of all members
DecompVar Class Reference

#include <DecompVar.h>

+ Collaboration diagram for DecompVar:

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)
 
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
 

Detailed Description

Definition at line 29 of file DecompVar.h.

Constructor & Destructor Documentation

◆ DecompVar() [1/15]

DecompVar::DecompVar ( const DecompVar source)
inline

Definition at line 154 of file DecompVar.h.

◆ DecompVar() [2/15]

DecompVar::DecompVar ( )
inline

Definition at line 180 of file DecompVar.h.

◆ DecompVar() [3/15]

DecompVar::DecompVar ( const std::vector< int > &  ind,
const double  els,
const double  redCost,
const double  origCost,
const DecompVarType  varType 
)
inline

Definition at line 192 of file DecompVar.h.

◆ DecompVar() [4/15]

DecompVar::DecompVar ( const std::vector< int > &  ind,
const std::vector< double > &  els,
const double  redCost,
const double  origCost 
)
inline

Definition at line 217 of file DecompVar.h.

◆ DecompVar() [5/15]

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 241 of file DecompVar.h.

◆ DecompVar() [6/15]

DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  origCost 
)
inline

Definition at line 266 of file DecompVar.h.

◆ DecompVar() [7/15]

DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  origCost,
const DecompVarType  varType 
)
inline

Definition at line 287 of file DecompVar.h.

◆ DecompVar() [8/15]

DecompVar::DecompVar ( const int  len,
const int *  ind,
const double  els,
const double  origCost 
)
inline

Definition at line 309 of file DecompVar.h.

◆ DecompVar() [9/15]

DecompVar::DecompVar ( const int  len,
const int *  ind,
const double  els,
const double  origCost,
const DecompVarType  varType 
)
inline

Definition at line 330 of file DecompVar.h.

◆ DecompVar() [10/15]

DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  redCost,
const double  origCost 
)
inline

Definition at line 352 of file DecompVar.h.

◆ DecompVar() [11/15]

DecompVar::DecompVar ( const int  len,
const int *  ind,
const double *  els,
const double  redCost,
const double  origCost,
const DecompVarType  varType 
)
inline

Definition at line 374 of file DecompVar.h.

◆ DecompVar() [12/15]

DecompVar::DecompVar ( const int  denseLen,
const double *  denseArray,
const double  redCost,
const double  origCost,
const DecompVarType  varType 
)
inline

Definition at line 397 of file DecompVar.h.

◆ ~DecompVar() [1/2]

virtual DecompVar::~DecompVar ( )
inlinevirtual

Definition at line 420 of file DecompVar.h.

◆ DecompVar() [13/15]

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.

◆ DecompVar() [14/15]

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.

◆ DecompVar() [15/15]

DecompVar::DecompVar ( const int  denseLen,
const double *  denseArray,
const double  redCost,
const double  origCost 
)
inline

Definition at line 113 of file DecompVar.h.

◆ ~DecompVar() [2/2]

virtual DecompVar::~DecompVar ( )
inlinevirtual

Definition at line 129 of file DecompVar.h.

Member Function Documentation

◆ getVarType()

DecompVarType DecompVar::getVarType ( ) const
inline

Definition at line 47 of file DecompVar.h.

◆ getOriginalCost() [1/2]

double DecompVar::getOriginalCost ( ) const
inline

Definition at line 50 of file DecompVar.h.

◆ getReducedCost() [1/2]

double DecompVar::getReducedCost ( ) const
inline

Definition at line 53 of file DecompVar.h.

◆ getEffectiveness() [1/2]

int DecompVar::getEffectiveness ( ) const
inline

Definition at line 56 of file DecompVar.h.

◆ getLowerBound() [1/2]

double DecompVar::getLowerBound ( ) const
inline

Definition at line 59 of file DecompVar.h.

◆ getUpperBound() [1/2]

double DecompVar::getUpperBound ( ) const
inline

Definition at line 62 of file DecompVar.h.

◆ getStrHash() [1/2]

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

Definition at line 65 of file DecompVar.h.

◆ getBlockId()

int DecompVar::getBlockId ( ) const
inline

Definition at line 68 of file DecompVar.h.

◆ getColMasterIndex()

int DecompVar::getColMasterIndex ( ) const
inline

Definition at line 71 of file DecompVar.h.

◆ getNorm()

double DecompVar::getNorm ( ) const
inline

Definition at line 74 of file DecompVar.h.

◆ setVarType()

void DecompVar::setVarType ( const DecompVarType  varType)
inline

Definition at line 78 of file DecompVar.h.

◆ setColMasterIndex()

void DecompVar::setColMasterIndex ( const int  colIndex)
inline

Definition at line 81 of file DecompVar.h.

◆ setBlockId()

void DecompVar::setBlockId ( const int  blockId)
inline

Definition at line 84 of file DecompVar.h.

◆ setReducedCost() [1/2]

void DecompVar::setReducedCost ( const double  redCost)
inline

Definition at line 87 of file DecompVar.h.

◆ setOriginalCost()

void DecompVar::setOriginalCost ( const double  origCost)
inline

Definition at line 90 of file DecompVar.h.

◆ resetEffectiveness()

void DecompVar::resetEffectiveness ( )
inline

Definition at line 94 of file DecompVar.h.

◆ increaseEffCnt()

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 100 of file DecompVar.h.

◆ decreaseEffCnt()

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 106 of file DecompVar.h.

◆ calcNorm()

double DecompVar::calcNorm ( )
inline

Definition at line 110 of file DecompVar.h.

◆ sortVar()

void DecompVar::sortVar ( )
inline

Definition at line 114 of file DecompVar.h.

◆ isEquivalent() [1/2]

bool DecompVar::isEquivalent ( const DecompVar dvar)
inline

Definition at line 118 of file DecompVar.h.

◆ isDuplicate()

bool DecompVar::isDuplicate ( const DecompVarList vars)
inline

Definition at line 122 of file DecompVar.h.

◆ doesSatisfyBounds()

bool DecompVar::doesSatisfyBounds ( int  denseLen,
double *  denseArr,
const DecompSubModel model,
const double *  lbs,
const double *  ubs 
)

◆ fillDenseArr() [1/2]

void DecompVar::fillDenseArr ( int  len,
double *  arr 
)

◆ print() [1/3]

virtual void DecompVar::print ( double  infinity,
std::ostream *  os = &std::cout,
DecompApp app = 0 
) const
virtual

◆ print() [2/3]

virtual void DecompVar::print ( double  infinity,
std::ostream *  os,
const std::vector< std::string > &  colNames,
const double *  value = NULL 
) const
virtual

◆ operator=()

DecompVar& DecompVar::operator= ( const DecompVar rhs)
inline

Definition at line 165 of file DecompVar.h.

◆ getOriginalCost() [2/2]

double DecompVar::getOriginalCost ( ) const
inline

Definition at line 46 of file DecompVar.h.

◆ getReducedCost() [2/2]

double DecompVar::getReducedCost ( ) const
inline

Definition at line 49 of file DecompVar.h.

◆ getEffectiveness() [2/2]

double DecompVar::getEffectiveness ( ) const
inline

Definition at line 52 of file DecompVar.h.

◆ getLowerBound() [2/2]

double DecompVar::getLowerBound ( ) const
inline

Definition at line 55 of file DecompVar.h.

◆ getUpperBound() [2/2]

double DecompVar::getUpperBound ( ) const
inline

Definition at line 58 of file DecompVar.h.

◆ getStrHash() [2/2]

string DecompVar::getStrHash ( ) const
inline

Definition at line 61 of file DecompVar.h.

◆ setReducedCost() [2/2]

void DecompVar::setReducedCost ( const double  redCost)
inline

Definition at line 65 of file DecompVar.h.

◆ isEquivalent() [2/2]

bool DecompVar::isEquivalent ( const DecompVar dvar)
inline

Definition at line 68 of file DecompVar.h.

◆ fillDenseArr() [2/2]

void DecompVar::fillDenseArr ( int  len,
double *  arr 
)

◆ print() [3/3]

virtual void DecompVar::print ( ostream *  os = &cout,
DecompApp app = 0 
) const
virtual

Member Data Documentation

◆ m_s

CoinPackedVector DecompVar::m_s

Definition at line 33 of file DecompVar.h.


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