Dip 0.95.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
DecompConstraintSet Class Reference

#include <DecompConstraintSet.h>

+ Collaboration diagram for DecompConstraintSet:

Public Member Functions

void setSparse (const int numColsOrig)
 
const bool isSparse () const
 
const CoinPackedMatrixgetMatrix () 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 ()
 
CoinPackedMatrixsparseToOrigMatrix ()
 
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 ()
 

Public Attributes

CoinPackedMatrixM
 
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< CoinBigIndexm_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
 

Detailed Description

Definition at line 30 of file DecompConstraintSet.h.

Constructor & Destructor Documentation

◆ DecompConstraintSet()

DecompConstraintSet::DecompConstraintSet ( )
inline

Definition at line 197 of file DecompConstraintSet.h.

◆ ~DecompConstraintSet()

DecompConstraintSet::~DecompConstraintSet ( )
inline

Definition at line 207 of file DecompConstraintSet.h.

Member Function Documentation

◆ setSparse()

void DecompConstraintSet::setSparse ( const int numColsOrig)
inline

Definition at line 65 of file DecompConstraintSet.h.

◆ isSparse()

const bool DecompConstraintSet::isSparse ( ) const
inline

Definition at line 69 of file DecompConstraintSet.h.

◆ getMatrix()

const CoinPackedMatrix * DecompConstraintSet::getMatrix ( ) const
inline

Definition at line 72 of file DecompConstraintSet.h.

◆ getNumRows()

const int DecompConstraintSet::getNumRows ( ) const
inline

Definition at line 75 of file DecompConstraintSet.h.

◆ getNumCols()

const int DecompConstraintSet::getNumCols ( ) const
inline

Definition at line 78 of file DecompConstraintSet.h.

◆ getNumColsOrig()

const int DecompConstraintSet::getNumColsOrig ( ) const
inline

Definition at line 81 of file DecompConstraintSet.h.

◆ getNumInts()

const int DecompConstraintSet::getNumInts ( ) const
inline

Definition at line 84 of file DecompConstraintSet.h.

◆ getActiveColumns()

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

Definition at line 87 of file DecompConstraintSet.h.

◆ getRowNames()

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

Definition at line 90 of file DecompConstraintSet.h.

◆ getColNames()

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

Definition at line 93 of file DecompConstraintSet.h.

◆ getRowNamesMutable()

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

Definition at line 96 of file DecompConstraintSet.h.

◆ getColNamesMutable()

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

Definition at line 99 of file DecompConstraintSet.h.

◆ getIntegerMark()

const char * DecompConstraintSet::getIntegerMark ( )
inline

Definition at line 102 of file DecompConstraintSet.h.

◆ getIntegerVars()

const int * DecompConstraintSet::getIntegerVars ( )
inline

Definition at line 105 of file DecompConstraintSet.h.

◆ getColLB()

const double * DecompConstraintSet::getColLB ( ) const
inline

Definition at line 108 of file DecompConstraintSet.h.

◆ getColUB()

const double * DecompConstraintSet::getColUB ( ) const
inline

Definition at line 111 of file DecompConstraintSet.h.

◆ getRowLB()

const double * DecompConstraintSet::getRowLB ( ) const
inline

Definition at line 114 of file DecompConstraintSet.h.

◆ getRowUB()

const double * DecompConstraintSet::getRowUB ( ) const
inline

Definition at line 117 of file DecompConstraintSet.h.

◆ hasPrepRun()

const bool DecompConstraintSet::hasPrepRun ( ) const
inline

Definition at line 120 of file DecompConstraintSet.h.

◆ getMapOrigToSparse()

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

Definition at line 123 of file DecompConstraintSet.h.

◆ getMapSparseToOrig()

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

Definition at line 126 of file DecompConstraintSet.h.

◆ getMasterOnlyCols()

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

Definition at line 129 of file DecompConstraintSet.h.

◆ prepareModel()

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

◆ createRowHash()

void DecompConstraintSet::createRowHash ( double infinity)

◆ checkSenseAndBound()

void DecompConstraintSet::checkSenseAndBound ( double infinity)

◆ sensesToBounds()

void DecompConstraintSet::sensesToBounds ( double infinity)

◆ boundsToSenses()

void DecompConstraintSet::boundsToSenses ( double infinity)

◆ fixNonActiveColumns()

void DecompConstraintSet::fixNonActiveColumns ( )

◆ sparseToOrigMatrix()

CoinPackedMatrix * DecompConstraintSet::sparseToOrigMatrix ( )

◆ appendRow() [1/2]

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

Definition at line 143 of file DecompConstraintSet.h.

◆ appendRow() [2/2]

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

Definition at line 157 of file DecompConstraintSet.h.

◆ pushCol()

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.

◆ reserve()

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

Definition at line 188 of file DecompConstraintSet.h.

Member Data Documentation

◆ M

CoinPackedMatrix* DecompConstraintSet::M

Definition at line 32 of file DecompConstraintSet.h.

◆ nBaseRowsOrig

int DecompConstraintSet::nBaseRowsOrig

Definition at line 33 of file DecompConstraintSet.h.

◆ nBaseRows

int DecompConstraintSet::nBaseRows

Definition at line 34 of file DecompConstraintSet.h.

◆ rowHash

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

Definition at line 35 of file DecompConstraintSet.h.

◆ rowSense

std::vector<char> DecompConstraintSet::rowSense

Definition at line 36 of file DecompConstraintSet.h.

◆ rowRhs

std::vector<double> DecompConstraintSet::rowRhs

Definition at line 37 of file DecompConstraintSet.h.

◆ rowLB

std::vector<double> DecompConstraintSet::rowLB

Definition at line 38 of file DecompConstraintSet.h.

◆ rowUB

std::vector<double> DecompConstraintSet::rowUB

Definition at line 39 of file DecompConstraintSet.h.

◆ colLB

std::vector<double> DecompConstraintSet::colLB

Definition at line 40 of file DecompConstraintSet.h.

◆ colUB

std::vector<double> DecompConstraintSet::colUB

Definition at line 41 of file DecompConstraintSet.h.

◆ integerVars

std::vector<int> DecompConstraintSet::integerVars

Definition at line 42 of file DecompConstraintSet.h.

◆ integerMark

std::vector<char> DecompConstraintSet::integerMark

Definition at line 43 of file DecompConstraintSet.h.

◆ colNames

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

Definition at line 44 of file DecompConstraintSet.h.

◆ rowNames

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

Definition at line 45 of file DecompConstraintSet.h.

◆ activeColumns

std::vector<int> DecompConstraintSet::activeColumns

Definition at line 46 of file DecompConstraintSet.h.

◆ activeColumnsS

std::set<int> DecompConstraintSet::activeColumnsS

Definition at line 47 of file DecompConstraintSet.h.

◆ masterOnlyCols

std::vector<int> DecompConstraintSet::masterOnlyCols

Definition at line 48 of file DecompConstraintSet.h.

◆ prepHasRun

bool DecompConstraintSet::prepHasRun

Definition at line 49 of file DecompConstraintSet.h.

◆ m_rowBeg

std::vector<CoinBigIndex> DecompConstraintSet::m_rowBeg

Definition at line 53 of file DecompConstraintSet.h.

◆ m_rowInd

std::vector<int > DecompConstraintSet::m_rowInd

Definition at line 54 of file DecompConstraintSet.h.

◆ m_rowVal

std::vector<double > DecompConstraintSet::m_rowVal

Definition at line 55 of file DecompConstraintSet.h.

◆ m_isSparse

bool DecompConstraintSet::m_isSparse

Definition at line 58 of file DecompConstraintSet.h.

◆ m_numColsOrig

int DecompConstraintSet::m_numColsOrig

Definition at line 59 of file DecompConstraintSet.h.

◆ m_origToSparse

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

Definition at line 60 of file DecompConstraintSet.h.

◆ m_sparseToOrig

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

Definition at line 61 of file DecompConstraintSet.h.

◆ m_infinity

double DecompConstraintSet::m_infinity

Definition at line 62 of file DecompConstraintSet.h.


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