Dip  0.92.4
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
DecompCut Class Reference

#include <DecompCut.h>

Inheritance diagram for DecompCut:
Inheritance graph
[legend]

Public Member Functions

double getLowerBound () const
 
double getUpperBound () const
 
double getViolation () const
 
int getEffCnt () const
 
std::string getStrHash () const
 
void setLowerBound (const double lb)
 
void setUpperBound (const double ub)
 
void setViolation (const double violation)
 
bool calcViolation (const CoinPackedVector *row, const double *x)
 
virtual void setStringHash (CoinPackedVector *row, double infinity)
 
virtual void expandCutToRow (CoinPackedVector *row)
 
virtual void setBounds ()
 
virtual bool isSame (const DecompCut *cut) const
 
virtual void print (std::ostream *os=&std::cout) const
 
void resetEffCnt ()
 
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...
 
 DecompCut ()
 
virtual ~DecompCut ()
 
double getLowerBound () const
 
double getUpperBound () const
 
double getViolation () const
 
int getEffCnt () const
 
string getStrHash () const
 
void setLowerBound (const double lb)
 
void setUpperBound (const double ub)
 
void setViolation (const double violation)
 
bool calcViolation (const CoinPackedVector *row, const double *x)
 
virtual void setStringHash (CoinPackedVector *row)
 
virtual void expandCutToRow (CoinPackedVector *row)
 
virtual void setBounds ()
 
virtual bool isSame (const DecompCut *cut) const
 
virtual void print (ostream *os=&cout) const
 
void resetEffCnt ()
 
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...
 
 DecompCut ()
 
virtual ~DecompCut ()
 

Protected Attributes

std::string m_strHash
 
string m_strHash
 

Private Member Functions

 DecompCut (const DecompCut &)
 
DecompCutoperator= (const DecompCut &)
 

Private Attributes

double m_lb
 
double m_ub
 
double m_violation
 
int m_effCnt
 

Detailed Description

Definition at line 34 of file DecompCut.h.

Constructor & Destructor Documentation

DecompCut::DecompCut ( )
inline

Definition at line 135 of file DecompCut.h.

virtual DecompCut::~DecompCut ( )
inlinevirtual

Definition at line 142 of file DecompCut.h.

DecompCut::DecompCut ( const DecompCut )
private
DecompCut::DecompCut ( )
inline

Definition at line 140 of file DecompCut.h.

virtual DecompCut::~DecompCut ( )
inlinevirtual

Definition at line 147 of file DecompCut.h.

Member Function Documentation

double DecompCut::getLowerBound ( ) const
inline

Definition at line 47 of file DecompCut.h.

References m_lb.

Referenced by DecompWaitingRow::getLowerBound(), DecompCutOsi::print(), and setStringHash().

double DecompCut::getUpperBound ( ) const
inline
double DecompCut::getViolation ( ) const
inline

Definition at line 53 of file DecompCut.h.

References m_violation.

Referenced by DecompWaitingRow::getViolation(), and DecompCutOsi::print().

int DecompCut::getEffCnt ( ) const
inline

Definition at line 56 of file DecompCut.h.

References m_effCnt.

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

Definition at line 59 of file DecompCut.h.

References m_strHash.

void DecompCut::setLowerBound ( const double  lb)
inline

Definition at line 64 of file DecompCut.h.

References m_lb.

Referenced by DecompCutOsi::setBounds().

void DecompCut::setUpperBound ( const double  ub)
inline

Definition at line 67 of file DecompCut.h.

References m_ub.

Referenced by DecompCutOsi::setBounds().

void DecompCut::setViolation ( const double  violation)
inline

Definition at line 70 of file DecompCut.h.

References m_violation.

bool DecompCut::calcViolation ( const CoinPackedVector row,
const double *  x 
)
virtual void DecompCut::setStringHash ( CoinPackedVector row,
double  infinity 
)
inlinevirtual
virtual void DecompCut::expandCutToRow ( CoinPackedVector row)
inlinevirtual

Reimplemented in DecompCutOsi, DecompCutOsi, VRP_GSECCut, TSP_SubtourCut, and DippyDecompCut.

Definition at line 101 of file DecompCut.h.

virtual void DecompCut::setBounds ( )
inlinevirtual

Reimplemented in DecompCutOsi, and DecompCutOsi.

Definition at line 106 of file DecompCut.h.

virtual bool DecompCut::isSame ( const DecompCut cut) const
inlinevirtual

Reimplemented in VRP_GSECCut, and TSP_SubtourCut.

Definition at line 111 of file DecompCut.h.

virtual void DecompCut::print ( std::ostream *  os = &std::cout) const
virtual

Reimplemented in DecompCutOsi.

void DecompCut::resetEffCnt ( )
inline

Definition at line 118 of file DecompCut.h.

References m_effCnt.

void DecompCut::increaseEffCnt ( )
inline

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

Return the new effectiveness count.

Definition at line 124 of file DecompCut.h.

References m_effCnt.

void DecompCut::decreaseEffCnt ( )
inline

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

Return the new effectiveness count.

Definition at line 130 of file DecompCut.h.

References m_effCnt.

DecompCut& DecompCut::operator= ( const DecompCut )
private
double DecompCut::getLowerBound ( ) const
inline

Definition at line 52 of file DecompCut.h.

double DecompCut::getUpperBound ( ) const
inline

Definition at line 55 of file DecompCut.h.

double DecompCut::getViolation ( ) const
inline

Definition at line 58 of file DecompCut.h.

int DecompCut::getEffCnt ( ) const
inline

Definition at line 61 of file DecompCut.h.

string DecompCut::getStrHash ( ) const
inline

Definition at line 64 of file DecompCut.h.

void DecompCut::setLowerBound ( const double  lb)
inline

Definition at line 69 of file DecompCut.h.

void DecompCut::setUpperBound ( const double  ub)
inline

Definition at line 72 of file DecompCut.h.

void DecompCut::setViolation ( const double  violation)
inline

Definition at line 75 of file DecompCut.h.

bool DecompCut::calcViolation ( const CoinPackedVector row,
const double *  x 
)
virtual void DecompCut::setStringHash ( CoinPackedVector row)
inlinevirtual
virtual void DecompCut::expandCutToRow ( CoinPackedVector row)
inlinevirtual

Reimplemented in DecompCutOsi, DecompCutOsi, VRP_GSECCut, TSP_SubtourCut, and DippyDecompCut.

Definition at line 106 of file DecompCut.h.

virtual void DecompCut::setBounds ( )
inlinevirtual

Reimplemented in DecompCutOsi, and DecompCutOsi.

Definition at line 111 of file DecompCut.h.

virtual bool DecompCut::isSame ( const DecompCut cut) const
inlinevirtual

Reimplemented in VRP_GSECCut, and TSP_SubtourCut.

Definition at line 116 of file DecompCut.h.

virtual void DecompCut::print ( ostream *  os = &cout) const
virtual

Reimplemented in DecompCutOsi, and VRP_GSECCut.

void DecompCut::resetEffCnt ( )
inline

Definition at line 123 of file DecompCut.h.

void DecompCut::increaseEffCnt ( )
inline

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

Return the new effectiveness count.

Definition at line 129 of file DecompCut.h.

void DecompCut::decreaseEffCnt ( )
inline

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

Return the new effectiveness count.

Definition at line 135 of file DecompCut.h.

Member Data Documentation

double DecompCut::m_lb
private

Definition at line 36 of file DecompCut.h.

Referenced by getLowerBound(), and setLowerBound().

double DecompCut::m_ub
private

Definition at line 37 of file DecompCut.h.

Referenced by getUpperBound(), and setUpperBound().

double DecompCut::m_violation
private

Definition at line 39 of file DecompCut.h.

Referenced by getViolation(), and setViolation().

int DecompCut::m_effCnt
private

Definition at line 40 of file DecompCut.h.

Referenced by decreaseEffCnt(), getEffCnt(), increaseEffCnt(), and resetEffCnt().

std::string DecompCut::m_strHash
protected

Definition at line 43 of file DecompCut.h.

Referenced by getStrHash(), DecompCutOsi::setStringHash(), and setStringHash().

string DecompCut::m_strHash
protected

Definition at line 48 of file DecompCut.h.


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