Go to the documentation of this file.
15 #ifndef DECOMP_CONSTRAINTSET_INCLUDED
16 #define DECOMP_CONSTRAINTSET_INCLUDED
135 void prepareModel(
double infinity,
bool modelIsCore =
false);
147 rowLB.push_back(loBound);
148 rowUB.push_back(upBound);
160 std::string rowName) {
166 const double upBound,
167 const bool isInteger =
false,
168 const int origIndex = -1) {
169 int index =
static_cast<int>(
colLB.size());
170 colLB.push_back(loBound);
171 colUB.push_back(upBound);
182 if (origIndex >= 0) {
191 rowLB.reserve(nRows);
192 rowUB.reserve(nRows);
193 colLB.reserve(nCols);
194 colUB.reserve(nCols);
std::vector< CoinBigIndex > m_rowBeg
std::vector< std::string > colNames
void appendRow(CoinPackedVector &row, double loBound, double upBound)
std::vector< double > colUB
const int getNumColsOrig() const
void reserve(const int newMaxMajorDim, const CoinBigIndex newMaxSize, bool create=false)
std::vector< int > m_rowInd
void checkSenseAndBound(double infinity)
void sensesToBounds(double infinity)
void appendRow(const CoinPackedVectorBase &vec)
std::vector< std::string > & getColNamesMutable()
std::vector< std::string > & getRowNamesMutable()
void createRowHash(double infinity)
const std::vector< int > & getActiveColumns() const
const std::vector< int > & getMasterOnlyCols() const
const int * getIntegerVars()
void setSparse(const int numColsOrig)
std::vector< double > colLB
void reserve(const int nCols, const int nRows)
const double * getColLB() const
std::vector< int > integerVars
std::vector< double > m_rowVal
const double * getRowLB() const
std::vector< char > integerMark
std::vector< int > activeColumns
std::map< int, int > m_origToSparse
std::vector< std::string > rowNames
void boundsToSenses(double infinity)
const std::vector< std::string > & getColNames() const
const int getNumInts() const
void appendRow(CoinPackedVector &row, double loBound, double upBound, std::string rowName)
const std::map< int, int > & getMapSparseToOrig() const
void fixNonActiveColumns()
std::vector< std::string > rowHash
const std::map< int, int > & getMapOrigToSparse() const
const std::vector< std::string > & getRowNames() const
const bool isSparse() const
CoinPackedMatrix * sparseToOrigMatrix()
std::vector< int > masterOnlyCols
std::vector< double > rowRhs
std::vector< char > rowSense
const bool hasPrepRun() const
const char * getIntegerMark()
const double * getRowUB() const
std::vector< double > rowLB
const int getNumRows() const
void pushCol(const double loBound, const double upBound, const bool isInteger=false, const int origIndex=-1)
void prepareModel(double infinity, bool modelIsCore=false)
std::set< int > activeColumnsS
std::map< int, int > m_sparseToOrig
const int getNumCols() const
const double * getColUB() const
const CoinPackedMatrix * getMatrix() const
std::vector< double > rowUB