#include <DecompConstraintSet.h>
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 (bool modelIsCore=false) |
void | createRowHash () |
void | checkSenseAndBound () |
void | sensesToBounds () |
void | boundsToSenses () |
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 |
vector< string > | rowHash |
vector< char > | rowSense |
vector< double > | rowRhs |
vector< double > | rowLB |
vector< double > | rowUB |
vector< double > | colLB |
vector< double > | colUB |
vector< int > | integerVars |
Definition at line 31 of file DecompConstraintSet.h.
DecompConstraintSet::DecompConstraintSet | ( | ) | [inline] |
Definition at line 197 of file DecompConstraintSet.h.
DecompConstraintSet::~DecompConstraintSet | ( | ) | [inline] |
Definition at line 206 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.
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] |
Definition at line 69 of file DecompConstraintSet.h.
References m_origToSparse.
Referenced by getNumColsOrig(), DecompAlgoModel::setActiveColBounds(), and DecompAlgoModel::setOsiObjCoeff().
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(), DecompApp::setModelRelax(), and DecompApp::setModelRelaxNest().
const std::map<int, int>& DecompConstraintSet::getMapOrigToSparse | ( | ) | const [inline] |
Definition at line 123 of file DecompConstraintSet.h.
References m_origToSparse.
Referenced by DecompAlgoModel::setActiveColBounds(), and DecompAlgoModel::setOsiObjCoeff().
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 | ( | bool | modelIsCore = false |
) |
Referenced by DecompApp::setModelCore(), DecompApp::setModelRelax(), and DecompApp::setModelRelaxNest().
void DecompConstraintSet::createRowHash | ( | ) |
void DecompConstraintSet::checkSenseAndBound | ( | ) |
void DecompConstraintSet::sensesToBounds | ( | ) |
void DecompConstraintSet::boundsToSenses | ( | ) |
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 | ( | ) |
Definition at line 33 of file DecompConstraintSet.h.
Referenced by appendRow(), getMatrix(), getNumCols(), getNumRows(), reserve(), and ~DecompConstraintSet().
Definition at line 34 of file DecompConstraintSet.h.
Definition at line 35 of file DecompConstraintSet.h.
std::vector<std::string> DecompConstraintSet::rowHash |
Definition at line 36 of file DecompConstraintSet.h.
std::vector<char> DecompConstraintSet::rowSense |
Definition at line 37 of file DecompConstraintSet.h.
std::vector<double> DecompConstraintSet::rowRhs |
Definition at line 38 of file DecompConstraintSet.h.
std::vector<double> DecompConstraintSet::rowLB |
Definition at line 39 of file DecompConstraintSet.h.
Referenced by appendRow(), getNumRows(), getRowLB(), and reserve().
std::vector<double> DecompConstraintSet::rowUB |
Definition at line 40 of file DecompConstraintSet.h.
Referenced by appendRow(), getRowUB(), and reserve().
std::vector<double> DecompConstraintSet::colLB |
Definition at line 41 of file DecompConstraintSet.h.
Referenced by getColLB(), getNumCols(), pushCol(), and reserve().
std::vector<double> DecompConstraintSet::colUB |
Definition at line 42 of file DecompConstraintSet.h.
Referenced by getColUB(), pushCol(), and reserve().
std::vector<int> DecompConstraintSet::integerVars |
Definition at line 43 of file DecompConstraintSet.h.
Referenced by getIntegerVars(), getNumInts(), and pushCol().
std::vector<char> DecompConstraintSet::integerMark |
Definition at line 44 of file DecompConstraintSet.h.
Referenced by getIntegerMark().
std::vector<std::string> DecompConstraintSet::colNames |
Definition at line 45 of file DecompConstraintSet.h.
Referenced by getColNames(), and getColNamesMutable().
std::vector<std::string> DecompConstraintSet::rowNames |
Definition at line 46 of file DecompConstraintSet.h.
Referenced by appendRow(), getRowNames(), and getRowNamesMutable().
std::vector<int> DecompConstraintSet::activeColumns |
Definition at line 47 of file DecompConstraintSet.h.
Referenced by getActiveColumns(), and DecompAlgoModel::setActiveColBounds().
std::set<int> DecompConstraintSet::activeColumnsS |
Definition at line 48 of file DecompConstraintSet.h.
std::vector<int> DecompConstraintSet::masterOnlyCols |
Definition at line 49 of file DecompConstraintSet.h.
Referenced by getMasterOnlyCols().
Definition at line 50 of file DecompConstraintSet.h.
Referenced by hasPrepRun().
std::vector<CoinBigIndex> DecompConstraintSet::m_rowBeg |
Definition at line 54 of file DecompConstraintSet.h.
std::vector<int > DecompConstraintSet::m_rowInd |
Definition at line 55 of file DecompConstraintSet.h.
std::vector<double > DecompConstraintSet::m_rowVal |
Definition at line 56 of file DecompConstraintSet.h.
Definition at line 59 of file DecompConstraintSet.h.
Referenced by pushCol(), and setSparse().
Definition at line 60 of file DecompConstraintSet.h.
Referenced by getNumColsOrig(), and setSparse().
std::map<int, int> DecompConstraintSet::m_origToSparse |
Definition at line 61 of file DecompConstraintSet.h.
Referenced by getMapOrigToSparse(), isSparse(), and pushCol().
std::map<int, int> DecompConstraintSet::m_sparseToOrig |
Definition at line 62 of file DecompConstraintSet.h.
Referenced by getMapSparseToOrig(), and pushCol().
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.