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< double > colLB
void reserve(const int newMaxMajorDim, const CoinBigIndex newMaxSize, bool create=false)
Reserve sufficient space for appending major-ordered vectors.
std::vector< double > rowLB
std::vector< std::string > rowNames
void fixNonActiveColumns()
const std::vector< int > & getMasterOnlyCols() const
std::vector< CoinBigIndex > m_rowBeg
std::set< int > activeColumnsS
std::vector< double > colUB
std::vector< double > rowUB
const std::map< int, int > & getMapSparseToOrig() const
std::vector< int > activeColumns
void setSparse(const int numColsOrig)
int getNumRows() const
Number of rows.
Sparse Matrix Base Class.
CoinPackedMatrix * sparseToOrigMatrix()
const char * getIntegerMark()
const bool isSparse() const
const double * getColUB() const
void checkSenseAndBound()
const int getNumRows() const
std::vector< int > integerVars
void appendRow(const CoinPackedVectorBase &vec)
std::vector< std::string > & getColNamesMutable()
const double * getRowLB() const
const std::vector< int > & getActiveColumns() const
void appendRow(CoinPackedVector &row, double loBound, double upBound)
std::map< int, int > m_sparseToOrig
std::vector< std::string > colNames
const std::map< int, int > & getMapOrigToSparse() const
int getNumCols() const
Number of columns.
void appendRow(CoinPackedVector &row, double loBound, double upBound, std::string rowName)
std::map< int, int > m_origToSparse
const std::vector< std::string > & getRowNames() const
void pushCol(const double loBound, const double upBound, const bool isInteger=false, const int origIndex=-1)
const int getNumInts() const
std::vector< double > m_rowVal
std::vector< double > rowRhs
const std::vector< std::string > & getColNames() const
std::vector< std::string > rowHash
const double * getRowUB() const
const double * getColLB() const
const int getNumCols() const
void prepareModel(double infinity, bool modelIsCore=false)
const int * getIntegerVars()
const int getNumColsOrig() const
std::vector< int > masterOnlyCols
std::vector< char > integerMark
const bool hasPrepRun() const
std::vector< char > rowSense
std::vector< std::string > & getRowNamesMutable()
const CoinPackedMatrix * getMatrix() const
std::vector< int > m_rowInd
void reserve(const int nCols, const int nRows)