16 #ifndef OSDIPINTERFACE_H
17 #define OSDIPINTERFACE_H
20 #include "UtilMacros.h"
21 #include "OSInstance.h"
32 #include "OSInstance.h"
34 #include "CoinError.hpp"
39 #include "CoinHelperFunctions.hpp"
79 void readOSiL(std::string & filename);
81 void readOSoL(std::string & filename);
83 CoinPackedVector *
getRow(
int i);
double * getConstraintLowerBounds()
Get constraint lower bounds.
double * getVariableLowerBounds()
Get variable lower bounds.
double * getConstraintUpperBounds()
Get constraint upper bounds.
int getNumberOfIntegerVariables()
getNumberOfIntegerVariables
CoinPackedMatrix * getCoinPackedMatrix()
Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockOSInstancesProcessed
Returns array[getNumCols()] specifying if a variable is integer.
const int getVariableNumber() const
Get variable number.
bool m_coreConstraintIndexesProcessed
Returns array[getNumCols()] specifying if a variable is integer.
int getVariableNumber()
Get number of variables.
const int getNumberOfBinaryVariables() const
getNumberOfBinaryVariables
const double * getColLower() const
Get variable lower bounds.
std::vector< std::set< int > > m_blockVariableIndexes
Returns array[getNumCols()] specifying if a variable is integer.
const double getBestKnownUB() const
Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockVariableIndexesProcessed
Returns array[getNumCols()] specifying if a variable is integer.
CoinPackedMatrix * m_coinpm
double * getObjectiveFunctionCoeff()
Returns array[getNumCols()] specifying if a variable is integer.
OSiLReader * m_osilreader
std::string * getVariableNames()
Get variable names.
CoinPackedVector * getRow(int i)
Returns array[getNumCols()] specifying if a variable is integer.
double * getObjectiveWeights()
Get objective weights.
const double * getColUpper() const
Get variable upper bounds.
const double * getObjectiveWeights() const
Get objective weights.
const std::string * getConstraintNames() const
Get constraint names.
std::vector< std::set< int > > getBlockVarIndexes()
Returns array[getNumCols()] specifying if a variable is integer.
const std::string * getObjectiveMaxOrMins() const
Get objective maxOrMins.
std::vector< std::map< int, int > > getBlockConstraintIndexes()
Returns array[getNumCols()] specifying if a variable is integer.
~OS_DipInterface()
class destructor
void readOSiL(std::string &filename)
Returns array[getNumCols()] specifying if a variable is integer.
Used to read an OSiL string.
const double * getRowUpper() const
Get constraint upper bounds.
double getObjectiveOffset()
Returns array[getNumCols()] specifying if a variable is integer.
const double getBestKnownLB() const
Returns array[getNumCols()] specifying if a variable is integer.
OS_DipInterface()
class constructor
OSoLReader * m_osolreader
std::string * getObjectiveMaxOrMins()
Get objective maxOrMins.
double * getObjectiveConstants()
Get objective constants.
const int getConstraintNumber() const
Get constraint number.
const double * getObjectiveConstants() const
Get objective constants.
const double * getRowLower() const
Get constraint lower bounds.
std::set< int > getCoreConstraintIndexes()
Returns array[getNumCols()] specifying if a variable is integer.
int getConstraintNumber()
Get number of constraints.
void readOSoL(std::string &filename)
Returns array[getNumCols()] specifying if a variable is integer.
std::vector< OSInstance * > getBlockOSInstances()
Returns array[getNumCols()] specifying if a variable is integer.
const std::string * getVariableNames() const
Get variable names.
Used to read an OSoL string.
std::vector< std::map< int, int > > m_blockConstraintIndexes
Returns array[getNumCols()] specifying if a variable is integer.
std::vector< OSInstance * > m_blockOSInstances
Returns array[getNumCols()] specifying if a variable is integer.
std::vector< std::string > getBlockFactories()
Returns array[getNumCols()] specifying if a variable is integer.
double * getVariableUpperBounds()
Get variable upper bounds.
const char * getIntegerColumns()
Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockConstraintIndexesProcessed
Returns array[getNumCols()] specifying if a variable is integer.
bool m_isProvenOptimal
Best known LB/UB.
OSInstance * m_osinstance
std::vector< std::string > m_blockFactories
Returns array[getNumCols()] specifying if a variable is integer.
const int getNumberOfIntegerVariables() const
getNumberOfIntegerVariables
The in-memory representation of an OSiL instance..
std::string * getConstraintNames()
Get constraint names.
std::set< int > m_coreConstraintIndexes
Returns array[getNumCols()] specifying if a variable is integer.
bool m_blockFactoriesProcessed
Returns array[getNumCols()] specifying if a variable is integer.
std::map< int, std::vector< int > > generateInitialMaster()
Returns array[getNumCols()] specifying if a variable is integer.
int getNumberOfBinaryVariables()
getNumberOfBinaryVariables