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

#include <DecompConstraintSet.h>

Collaboration diagram for DecompConstraintSet:
Collaboration graph
[legend]

Public Member Functions

void setSparse (const int numColsOrig)
 
const bool isSparse () const
 
const CoinPackedMatrix * getMatrix () const
 
const int getNumRows () const
 
const int getNumCols () const
 
const int getNumColsOrig () const
 
const int getNumInts () const
 
const std::vector< int > & getActiveColumns () const
 
const std::vector< std::string > & getRowNames () const
 
const std::vector< std::string > & getColNames () const
 
std::vector< std::string > & getRowNamesMutable ()
 
std::vector< std::string > & getColNamesMutable ()
 
const char * getIntegerMark ()
 
const int * getIntegerVars ()
 
const double * getColLB () const
 
const double * getColUB () const
 
const double * getRowLB () const
 
const double * getRowUB () const
 
const bool hasPrepRun () const
 
const std::map< int, int > & getMapOrigToSparse () const
 
const std::map< int, int > & getMapSparseToOrig () const
 
const std::vector< int > & getMasterOnlyCols () const
 
void prepareModel (double infinity, bool modelIsCore=false)
 
void createRowHash (double infinity)
 
void checkSenseAndBound (double infinity)
 
void sensesToBounds (double infinity)
 
void boundsToSenses (double infinity)
 
void fixNonActiveColumns ()
 
CoinPackedMatrix * sparseToOrigMatrix ()
 
void appendRow (CoinPackedVector &row, double loBound, double upBound)
 
void appendRow (CoinPackedVector &row, double loBound, double upBound, std::string rowName)
 
void pushCol (const double loBound, const double upBound, const bool isInteger=false, const int origIndex=-1)
 
void reserve (const int nCols, const int nRows)
 
 DecompConstraintSet ()
 
 ~DecompConstraintSet ()
 
const int getNumRows () const
 
const int getNumCols () const
 
void createRowHash ()
 
void checkSenseAndBound ()
 
void sensesToBounds ()
 
void boundsToSenses ()
 
 DecompConstraintSet ()
 
 ~DecompConstraintSet ()
 

Public Attributes

CoinPackedMatrix * M
 
int nBaseRowsOrig
 
int nBaseRows
 
std::vector< std::string > rowHash
 
std::vector< char > rowSense
 
std::vector< double > rowRhs
 
std::vector< double > rowLB
 
std::vector< double > rowUB
 
std::vector< double > colLB
 
std::vector< double > colUB
 
std::vector< int > integerVars
 
std::vector< char > integerMark
 
std::vector< std::string > colNames
 
std::vector< std::string > rowNames
 
std::vector< int > activeColumns
 
std::set< int > activeColumnsS
 
std::vector< int > masterOnlyCols
 
bool prepHasRun
 
std::vector< CoinBigIndex > m_rowBeg
 
std::vector< int > m_rowInd
 
std::vector< double > m_rowVal
 
bool m_isSparse
 
int m_numColsOrig
 
std::map< int, int > m_origToSparse
 
std::map< int, int > m_sparseToOrig
 
double m_infinity
 
vector< string > rowHash
 
vector< char > rowSense
 
vector< double > rowRhs
 
vector< double > rowLB
 
vector< double > rowUB
 
vector< double > colLB
 
vector< double > colUB
 
vector< int > integerVars
 

Detailed Description

Definition at line 30 of file DecompConstraintSet.h.

Constructor & Destructor Documentation

DecompConstraintSet::DecompConstraintSet ( )
inline

Definition at line 197 of file DecompConstraintSet.h.

DecompConstraintSet::~DecompConstraintSet ( )
inline

Definition at line 207 of file DecompConstraintSet.h.

References M, and UTIL_DELPTR.

DecompConstraintSet::DecompConstraintSet ( )
inline

Definition at line 68 of file DecompConstraintSet.h.

DecompConstraintSet::~DecompConstraintSet ( )
inline

Definition at line 82 of file DecompConstraintSet.h.

References M, and UTIL_DELPTR.

Member Function Documentation

void DecompConstraintSet::setSparse ( const int  numColsOrig)
inline

Definition at line 65 of file DecompConstraintSet.h.

References m_isSparse, and m_numColsOrig.

const bool DecompConstraintSet::isSparse ( ) const
inline
const CoinPackedMatrix* DecompConstraintSet::getMatrix ( ) const
inline

Definition at line 72 of file DecompConstraintSet.h.

References M.

const int DecompConstraintSet::getNumRows ( ) const
inline

Definition at line 75 of file DecompConstraintSet.h.

References CoinPackedMatrix::getNumRows(), M, and rowLB.

Referenced by AlpsDecompModel::getNumCoreRows().

const int DecompConstraintSet::getNumCols ( ) const
inline

Definition at line 78 of file DecompConstraintSet.h.

References colLB, CoinPackedMatrix::getNumCols(), and M.

Referenced by getNumColsOrig(), and AlpsDecompModel::getNumCoreCols().

const int DecompConstraintSet::getNumColsOrig ( ) const
inline

Definition at line 81 of file DecompConstraintSet.h.

References getNumCols(), isSparse(), and m_numColsOrig.

const int DecompConstraintSet::getNumInts ( ) const
inline

Definition at line 84 of file DecompConstraintSet.h.

References integerVars.

const std::vector<int>& DecompConstraintSet::getActiveColumns ( ) const
inline

Definition at line 87 of file DecompConstraintSet.h.

References activeColumns.

const std::vector<std::string>& DecompConstraintSet::getRowNames ( ) const
inline

Definition at line 90 of file DecompConstraintSet.h.

References rowNames.

Referenced by AlpsDecompModel::getRowNames().

const std::vector<std::string>& DecompConstraintSet::getColNames ( ) const
inline

Definition at line 93 of file DecompConstraintSet.h.

References colNames.

Referenced by AlpsDecompModel::getColNames(), and AlpsDecompSolution::print().

std::vector<std::string>& DecompConstraintSet::getRowNamesMutable ( )
inline

Definition at line 96 of file DecompConstraintSet.h.

References rowNames.

std::vector<std::string>& DecompConstraintSet::getColNamesMutable ( )
inline

Definition at line 99 of file DecompConstraintSet.h.

References colNames.

const char* DecompConstraintSet::getIntegerMark ( )
inline

Definition at line 102 of file DecompConstraintSet.h.

References integerMark.

const int* DecompConstraintSet::getIntegerVars ( )
inline

Definition at line 105 of file DecompConstraintSet.h.

References integerVars.

const double* DecompConstraintSet::getColLB ( ) const
inline

Definition at line 108 of file DecompConstraintSet.h.

References colLB.

const double* DecompConstraintSet::getColUB ( ) const
inline

Definition at line 111 of file DecompConstraintSet.h.

References colUB.

const double* DecompConstraintSet::getRowLB ( ) const
inline

Definition at line 114 of file DecompConstraintSet.h.

References rowLB.

const double* DecompConstraintSet::getRowUB ( ) const
inline

Definition at line 117 of file DecompConstraintSet.h.

References rowUB.

const bool DecompConstraintSet::hasPrepRun ( ) const
inline

Definition at line 120 of file DecompConstraintSet.h.

References prepHasRun.

Referenced by DecompApp::setModelCore().

const std::map<int, int>& DecompConstraintSet::getMapOrigToSparse ( ) const
inline
const std::map<int, int>& DecompConstraintSet::getMapSparseToOrig ( ) const
inline

Definition at line 126 of file DecompConstraintSet.h.

References m_sparseToOrig.

const std::vector<int>& DecompConstraintSet::getMasterOnlyCols ( ) const
inline

Definition at line 129 of file DecompConstraintSet.h.

References masterOnlyCols.

void DecompConstraintSet::prepareModel ( double  infinity,
bool  modelIsCore = false 
)

Referenced by DecompApp::setModelCore().

void DecompConstraintSet::createRowHash ( double  infinity)
void DecompConstraintSet::checkSenseAndBound ( double  infinity)
void DecompConstraintSet::sensesToBounds ( double  infinity)
void DecompConstraintSet::boundsToSenses ( double  infinity)
void DecompConstraintSet::fixNonActiveColumns ( )
CoinPackedMatrix* DecompConstraintSet::sparseToOrigMatrix ( )
void DecompConstraintSet::appendRow ( CoinPackedVector &  row,
double  loBound,
double  upBound 
)
inline

Definition at line 143 of file DecompConstraintSet.h.

References CoinPackedMatrix::appendRow(), M, rowLB, and rowUB.

Referenced by appendRow().

void DecompConstraintSet::appendRow ( CoinPackedVector &  row,
double  loBound,
double  upBound,
std::string  rowName 
)
inline

Definition at line 157 of file DecompConstraintSet.h.

References appendRow(), and rowNames.

void DecompConstraintSet::pushCol ( const double  loBound,
const double  upBound,
const bool  isInteger = false,
const int  origIndex = -1 
)
inline

Definition at line 165 of file DecompConstraintSet.h.

References colLB, colUB, integerVars, m_isSparse, m_origToSparse, and m_sparseToOrig.

void DecompConstraintSet::reserve ( const int  nCols,
const int  nRows 
)
inline

Definition at line 188 of file DecompConstraintSet.h.

References colLB, colUB, M, CoinPackedMatrix::reserve(), rowLB, and rowUB.

const int DecompConstraintSet::getNumRows ( ) const
inline

Definition at line 54 of file DecompConstraintSet.h.

References CoinPackedMatrix::getNumRows(), and M.

const int DecompConstraintSet::getNumCols ( ) const
inline

Definition at line 57 of file DecompConstraintSet.h.

References CoinPackedMatrix::getNumCols(), and M.

void DecompConstraintSet::createRowHash ( )
void DecompConstraintSet::checkSenseAndBound ( )
void DecompConstraintSet::sensesToBounds ( )
void DecompConstraintSet::boundsToSenses ( )

Member Data Documentation

CoinPackedMatrix * DecompConstraintSet::M
int DecompConstraintSet::nBaseRowsOrig

Definition at line 33 of file DecompConstraintSet.h.

int DecompConstraintSet::nBaseRows

Definition at line 34 of file DecompConstraintSet.h.

std::vector<std::string> DecompConstraintSet::rowHash

Definition at line 35 of file DecompConstraintSet.h.

std::vector<char> DecompConstraintSet::rowSense

Definition at line 36 of file DecompConstraintSet.h.

std::vector<double> DecompConstraintSet::rowRhs

Definition at line 37 of file DecompConstraintSet.h.

std::vector<double> DecompConstraintSet::rowLB

Definition at line 38 of file DecompConstraintSet.h.

Referenced by appendRow(), getNumRows(), getRowLB(), and reserve().

std::vector<double> DecompConstraintSet::rowUB

Definition at line 39 of file DecompConstraintSet.h.

Referenced by appendRow(), getRowUB(), and reserve().

std::vector<double> DecompConstraintSet::colLB

Definition at line 40 of file DecompConstraintSet.h.

Referenced by getColLB(), getNumCols(), pushCol(), and reserve().

std::vector<double> DecompConstraintSet::colUB

Definition at line 41 of file DecompConstraintSet.h.

Referenced by getColUB(), pushCol(), and reserve().

std::vector<int> DecompConstraintSet::integerVars

Definition at line 42 of file DecompConstraintSet.h.

Referenced by getIntegerVars(), getNumInts(), and pushCol().

std::vector<char> DecompConstraintSet::integerMark

Definition at line 43 of file DecompConstraintSet.h.

Referenced by getIntegerMark().

std::vector<std::string> DecompConstraintSet::colNames

Definition at line 44 of file DecompConstraintSet.h.

Referenced by getColNames(), and getColNamesMutable().

std::vector<std::string> DecompConstraintSet::rowNames

Definition at line 45 of file DecompConstraintSet.h.

Referenced by appendRow(), getRowNames(), and getRowNamesMutable().

std::vector<int> DecompConstraintSet::activeColumns

Definition at line 46 of file DecompConstraintSet.h.

Referenced by getActiveColumns(), and DecompSubModel::setActiveColBounds().

std::set<int> DecompConstraintSet::activeColumnsS

Definition at line 47 of file DecompConstraintSet.h.

std::vector<int> DecompConstraintSet::masterOnlyCols

Definition at line 48 of file DecompConstraintSet.h.

Referenced by getMasterOnlyCols().

bool DecompConstraintSet::prepHasRun

Definition at line 49 of file DecompConstraintSet.h.

Referenced by hasPrepRun().

std::vector<CoinBigIndex> DecompConstraintSet::m_rowBeg

Definition at line 53 of file DecompConstraintSet.h.

std::vector<int > DecompConstraintSet::m_rowInd

Definition at line 54 of file DecompConstraintSet.h.

std::vector<double > DecompConstraintSet::m_rowVal

Definition at line 55 of file DecompConstraintSet.h.

bool DecompConstraintSet::m_isSparse

Definition at line 58 of file DecompConstraintSet.h.

Referenced by pushCol(), and setSparse().

int DecompConstraintSet::m_numColsOrig

Definition at line 59 of file DecompConstraintSet.h.

Referenced by getNumColsOrig(), and setSparse().

std::map<int, int> DecompConstraintSet::m_origToSparse

Definition at line 60 of file DecompConstraintSet.h.

Referenced by getMapOrigToSparse(), isSparse(), and pushCol().

std::map<int, int> DecompConstraintSet::m_sparseToOrig

Definition at line 61 of file DecompConstraintSet.h.

Referenced by getMapSparseToOrig(), and pushCol().

double DecompConstraintSet::m_infinity

Definition at line 62 of file DecompConstraintSet.h.

vector<string> DecompConstraintSet::rowHash

Definition at line 37 of file DecompConstraintSet.h.

vector<char> DecompConstraintSet::rowSense

Definition at line 38 of file DecompConstraintSet.h.

vector<double> DecompConstraintSet::rowRhs

Definition at line 39 of file DecompConstraintSet.h.

vector<double> DecompConstraintSet::rowLB

Definition at line 42 of file DecompConstraintSet.h.

vector<double> DecompConstraintSet::rowUB

Definition at line 43 of file DecompConstraintSet.h.

vector<double> DecompConstraintSet::colLB

Definition at line 44 of file DecompConstraintSet.h.

vector<double> DecompConstraintSet::colUB

Definition at line 45 of file DecompConstraintSet.h.

vector<int> DecompConstraintSet::integerVars

Definition at line 46 of file DecompConstraintSet.h.


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