OS_DipInterface Class Reference

#include <OSDipInterface.h>

Collaboration diagram for OS_DipInterface:
Collaboration graph
[legend]

List of all members.

Public Attributes

bool m_isProvenOptimal
 Best known LB/UB.
double m_bestKnownLB
double m_bestKnownUB
OSInstancem_osinstance
OSOptionm_osoption
OSiLReaderm_osilreader
OSoLReaderm_osolreader
char * m_integerVars
CoinPackedMatrix * m_coinpm
CoinPackedVector * m_row

Helper Methods.



std::vector< std::set< int > > m_blockVariableIndexes
 Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockVariableIndexesProcessed
 Returns array[getNumCols()] specifying if a variable is integer.
std::set< int > m_coreConstraintIndexes
 Returns array[getNumCols()] specifying if a variable is integer.
bool m_coreConstraintIndexesProcessed
 Returns array[getNumCols()] specifying if a variable is integer.
std::vector< std::map< int, int > > m_blockConstraintIndexes
 Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockConstraintIndexesProcessed
 Returns array[getNumCols()] specifying if a variable is integer.
std::vector< OSInstance * > m_blockOSInstances
 Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockOSInstancesProcessed
 Returns array[getNumCols()] specifying if a variable is integer.
std::vector< std::string > m_blockFactories
 Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockFactoriesProcessed
 Returns array[getNumCols()] specifying if a variable is integer.
void readOSiL (std::string &filename)
 Returns array[getNumCols()] specifying if a variable is integer.
void readOSoL (std::string &filename)
 Returns array[getNumCols()] specifying if a variable is integer.
CoinPackedVector * getRow (int i)
 Returns array[getNumCols()] specifying if a variable is integer.
CoinPackedMatrix * getCoinPackedMatrix ()
 Returns array[getNumCols()] specifying if a variable is integer.
const char * getIntegerColumns ()
 Returns array[getNumCols()] specifying if a variable is integer.
double getObjectiveOffset ()
 Returns array[getNumCols()] specifying if a variable is integer.
std::vector< std::set< int > > getBlockVarIndexes ()
 Returns array[getNumCols()] specifying if a variable is integer.
std::set< int > getCoreConstraintIndexes ()
 Returns array[getNumCols()] specifying if a variable is integer.
std::vector< std::map< int, int > > getBlockConstraintIndexes ()
 Returns array[getNumCols()] specifying if a variable is integer.
std::vector< OSInstance * > getBlockOSInstances ()
 Returns array[getNumCols()] specifying if a variable is integer.
std::vector< std::string > getBlockFactories ()
 Returns array[getNumCols()] specifying if a variable is integer.
double * getObjectiveFunctionCoeff ()
 Returns array[getNumCols()] specifying if a variable is integer.
const double getBestKnownLB () const
 Returns array[getNumCols()] specifying if a variable is integer.
const double getBestKnownUB () const
 Returns array[getNumCols()] specifying if a variable is integer.
const std::string * getObjectiveMaxOrMins () const
 Get objective maxOrMins.
const double * getObjectiveConstants () const
 Get objective constants.
const double * getObjectiveWeights () const
 Get objective weights.
const int getNumberOfIntegerVariables () const
 getNumberOfIntegerVariables
const int getNumberOfBinaryVariables () const
 getNumberOfBinaryVariables
const int getVariableNumber () const
 Get variable number.
const int getConstraintNumber () const
 Get constraint number.
const double * getColLower () const
 Get variable lower bounds.
const double * getColUpper () const
 Get variable upper bounds.
const std::string * getVariableNames () const
 Get variable names.
const double * getRowLower () const
 Get constraint lower bounds.
const double * getRowUpper () const
 Get constraint upper bounds.
const std::string * getConstraintNames () const
 Get constraint names.
std::map< int, std::vector< int > > generateInitialMaster ()
 Returns array[getNumCols()] specifying if a variable is integer.
 OS_DipInterface ()
 class constructor
 ~OS_DipInterface ()
 class destructor

Detailed Description

A generic class to interface with Optimization Services (OS) for use in Dip (Decomposition in Integer Programming).

Definition at line 57 of file OSDipInterface.h.


Constructor & Destructor Documentation

OS_DipInterface::OS_DipInterface (  ) 

class constructor

Default constructor.

Definition at line 680 of file OSDipInterface.cpp.

OS_DipInterface::~OS_DipInterface (  ) 

class destructor

Definition at line 699 of file OSDipInterface.cpp.


Member Function Documentation

void OS_DipInterface::readOSiL ( std::string &  filename  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 23 of file OSDipInterface.cpp.

void OS_DipInterface::readOSoL ( std::string &  filename  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 74 of file OSDipInterface.cpp.

CoinPackedVector * OS_DipInterface::getRow ( int  i  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 108 of file OSDipInterface.cpp.

CoinPackedMatrix * OS_DipInterface::getCoinPackedMatrix (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 103 of file OSDipInterface.cpp.

const char * OS_DipInterface::getIntegerColumns (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 127 of file OSDipInterface.cpp.

double OS_DipInterface::getObjectiveOffset (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 147 of file OSDipInterface.cpp.

std::vector< std::set< int > > OS_DipInterface::getBlockVarIndexes (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 211 of file OSDipInterface.cpp.

std::set< int > OS_DipInterface::getCoreConstraintIndexes (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 603 of file OSDipInterface.cpp.

std::vector< std::map< int, int > > OS_DipInterface::getBlockConstraintIndexes (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 279 of file OSDipInterface.cpp.

std::vector< OSInstance * > OS_DipInterface::getBlockOSInstances (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 359 of file OSDipInterface.cpp.

std::vector< std::string > OS_DipInterface::getBlockFactories (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 160 of file OSDipInterface.cpp.

double * OS_DipInterface::getObjectiveFunctionCoeff (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 671 of file OSDipInterface.cpp.

const double OS_DipInterface::getBestKnownLB (  )  const [inline]

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 132 of file OSDipInterface.h.

const double OS_DipInterface::getBestKnownUB (  )  const [inline]

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 133 of file OSDipInterface.h.

const std::string* OS_DipInterface::getObjectiveMaxOrMins (  )  const [inline]

Get objective maxOrMins.

One maxOrMin for each objective.

Returns:
a std::string array of objective maxOrMins ("max" or "min"), null if no objectives.
Exceptions:
Exception if the elements in objectives are logically inconsistent.

Definition at line 144 of file OSDipInterface.h.

const double* OS_DipInterface::getObjectiveConstants (  )  const [inline]

Get objective constants.

One constant for each objective.

Returns:
a double array of objective constants, null if no objectives.
Exceptions:
Exception if the elements in objectives are logically inconsistent.

Definition at line 153 of file OSDipInterface.h.

const double* OS_DipInterface::getObjectiveWeights (  )  const [inline]

Get objective weights.

One weight for each objective.

Returns:
a double array of objective weights, null if no objectives.
Exceptions:
Exception if the elements in objectives are logically inconsistent.

Definition at line 161 of file OSDipInterface.h.

const int OS_DipInterface::getNumberOfIntegerVariables (  )  const [inline]

getNumberOfIntegerVariables

Returns:
an integer which is the number of general integer variables.

Definition at line 167 of file OSDipInterface.h.

const int OS_DipInterface::getNumberOfBinaryVariables (  )  const [inline]

getNumberOfBinaryVariables

Returns:
an integer which is the number of binary variables.

Definition at line 173 of file OSDipInterface.h.

const int OS_DipInterface::getVariableNumber (  )  const [inline]

Get variable number.

Returns:
variable number.

Definition at line 181 of file OSDipInterface.h.

const int OS_DipInterface::getConstraintNumber (  )  const [inline]

Get constraint number.

Returns:
constraint number.

Definition at line 188 of file OSDipInterface.h.

const double* OS_DipInterface::getColLower (  )  const [inline]

Get variable lower bounds.

Returns:
pointer to variable lower bounds.

Definition at line 195 of file OSDipInterface.h.

const double* OS_DipInterface::getColUpper (  )  const [inline]

Get variable upper bounds.

Returns:
pointer to variable upper bounds.

Definition at line 203 of file OSDipInterface.h.

const std::string* OS_DipInterface::getVariableNames (  )  const [inline]

Get variable names.

Returns:
array of variable names.

Definition at line 211 of file OSDipInterface.h.

const double* OS_DipInterface::getRowLower (  )  const [inline]

Get constraint lower bounds.

Returns:
pointer to constraint lower bounds.

Definition at line 219 of file OSDipInterface.h.

const double* OS_DipInterface::getRowUpper (  )  const [inline]

Get constraint upper bounds.

Returns:
pointer to constraint upper bounds.

Definition at line 227 of file OSDipInterface.h.

const std::string* OS_DipInterface::getConstraintNames (  )  const [inline]

Get constraint names.

Returns:
array of constraint names.

Definition at line 235 of file OSDipInterface.h.

std::map< int, std::vector< int > > OS_DipInterface::generateInitialMaster (  ) 

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 719 of file OSDipInterface.cpp.


Member Data Documentation

Best known LB/UB.

Definition at line 63 of file OSDipInterface.h.

Definition at line 64 of file OSDipInterface.h.

Definition at line 65 of file OSDipInterface.h.

Definition at line 69 of file OSDipInterface.h.

Definition at line 70 of file OSDipInterface.h.

Definition at line 71 of file OSDipInterface.h.

Definition at line 72 of file OSDipInterface.h.

Definition at line 73 of file OSDipInterface.h.

CoinPackedMatrix* OS_DipInterface::m_coinpm

Definition at line 74 of file OSDipInterface.h.

CoinPackedVector* OS_DipInterface::m_row

Definition at line 75 of file OSDipInterface.h.

std::vector<std::set<int> > OS_DipInterface::m_blockVariableIndexes

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 101 of file OSDipInterface.h.

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 102 of file OSDipInterface.h.

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 106 of file OSDipInterface.h.

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 107 of file OSDipInterface.h.

std::vector<std::map<int, int> > OS_DipInterface::m_blockConstraintIndexes

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 113 of file OSDipInterface.h.

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 114 of file OSDipInterface.h.

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 118 of file OSDipInterface.h.

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 119 of file OSDipInterface.h.

std::vector<std::string > OS_DipInterface::m_blockFactories

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 124 of file OSDipInterface.h.

Returns array[getNumCols()] specifying if a variable is integer.

At present, simply coded as zero (continuous) and non-zero (integer) May be extended at a later date.

Definition at line 125 of file OSDipInterface.h.


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

Generated on 22 May 2012 by  doxygen 1.6.1