Public Member Functions | Public Attributes | Private Attributes | List of all members
OSmps2OS Class Reference

The OSmps2OS Class. More...

#include <OSmps2OS.h>

Collaboration diagram for OSmps2OS:
Collaboration graph
[legend]

Public Member Functions

 OSmps2OS (std::string mpsfilename)
 the OSmps2OS class constructor More...
 
 ~OSmps2OS ()
 the OSmps2os class destructor More...
 
void setOsol (std::string osol)
 set the osol string More...
 
void setJobID (std::string jobID)
 set the job ID More...
 
bool createOSObjects ()
 create an OSInstance from the MPS instance representation and an OSOption in case of nonstandard sections such as SOS More...
 

Public Attributes

OSInstanceosinstance
 osinstance is a pointer to the OSInstance object that gets created from the instance represented in MPS format More...
 
OSOptionosoption
 osoption is a pointer to an OSOption object that gets created if the MPS file contains nonstandard sections such as SOS More...
 
OSoLReaderosolreader
 we may need to parse an OSoL file if the MPS file contains an SOS os BASIS section More...
 
std::string osol
 osol is a string containing the content of the OS option file (it may be empty if no option file was provided by the user). More...
 
std::string jobID
 jobID is a string containing a jobID that may have been supplied on the command line (it may be empty). More...
 

Private Attributes

CoinMpsIO * m_MpsData
 m_MpsData is a pointer to a CoinMpsIO object More...
 
CoinPackedMatrix * m_CoinPackedMatrix
 m_CoinPackedMatrix is a pointer to a CoinPackedMatrix object More...
 
int m_nOfSOS
 Data structures to hold special ordered sets. More...
 
CoinSet ** m_SOS
 
intm_quadColumnStart
 Data structures to hold the quadratic objective. More...
 
intm_quadColumnIdx
 
double * m_quadElements
 
int m_nOfCones
 Data structures to hold the cone information. More...
 
intm_coneStart
 
intm_coneIdx
 
intm_coneType
 

Detailed Description

The OSmps2OS Class.

Author
Robert Fourer, Jun Ma, Kipp Martin
Remarks
the OSmps2osil class is used for reading an instance in MPS format and creating an OSInstance object in OSiL format and possibly an OSOption object in OSoL format (if the MPS file contains nonstandard sections such as SOS)

Definition at line 39 of file OSmps2OS.h.

Constructor & Destructor Documentation

OSmps2OS::OSmps2OS ( std::string  mpsfilename)

the OSmps2OS class constructor

Definition at line 24 of file OSmps2OS.cpp.

OSmps2OS::~OSmps2OS ( )

the OSmps2os class destructor

Definition at line 145 of file OSmps2OS.cpp.

Member Function Documentation

void OSmps2OS::setOsol ( std::string  osol)

set the osol string

void OSmps2OS::setJobID ( std::string  jobID)

set the job ID

bool OSmps2OS::createOSObjects ( )

create an OSInstance from the MPS instance representation and an OSOption in case of nonstandard sections such as SOS

Returns
whether the objects are created successfully.

Definition at line 192 of file OSmps2OS.cpp.

Member Data Documentation

OSInstance* OSmps2OS::osinstance

osinstance is a pointer to the OSInstance object that gets created from the instance represented in MPS format

Definition at line 65 of file OSmps2OS.h.

OSOption* OSmps2OS::osoption

osoption is a pointer to an OSOption object that gets created if the MPS file contains nonstandard sections such as SOS

Definition at line 70 of file OSmps2OS.h.

OSoLReader* OSmps2OS::osolreader

we may need to parse an OSoL file if the MPS file contains an SOS os BASIS section

Definition at line 76 of file OSmps2OS.h.

std::string OSmps2OS::osol

osol is a string containing the content of the OS option file (it may be empty if no option file was provided by the user).

If osoption is NULL, the option information is found in osol.

Definition at line 82 of file OSmps2OS.h.

std::string OSmps2OS::jobID

jobID is a string containing a jobID that may have been supplied on the command line (it may be empty).

If osoption is not NULL, the jobID has been duplicated to osoption.

Definition at line 88 of file OSmps2OS.h.

CoinMpsIO* OSmps2OS::m_MpsData
private

m_MpsData is a pointer to a CoinMpsIO object

Definition at line 91 of file OSmps2OS.h.

CoinPackedMatrix* OSmps2OS::m_CoinPackedMatrix
private

m_CoinPackedMatrix is a pointer to a CoinPackedMatrix object

Definition at line 94 of file OSmps2OS.h.

int OSmps2OS::m_nOfSOS
private

Data structures to hold special ordered sets.

Definition at line 97 of file OSmps2OS.h.

CoinSet** OSmps2OS::m_SOS
private

Definition at line 98 of file OSmps2OS.h.

int* OSmps2OS::m_quadColumnStart
private

Data structures to hold the quadratic objective.

Definition at line 101 of file OSmps2OS.h.

int* OSmps2OS::m_quadColumnIdx
private

Definition at line 102 of file OSmps2OS.h.

double* OSmps2OS::m_quadElements
private

Definition at line 103 of file OSmps2OS.h.

int OSmps2OS::m_nOfCones
private

Data structures to hold the cone information.

Definition at line 106 of file OSmps2OS.h.

int* OSmps2OS::m_coneStart
private

Definition at line 107 of file OSmps2OS.h.

int* OSmps2OS::m_coneIdx
private

Definition at line 108 of file OSmps2OS.h.

int* OSmps2OS::m_coneType
private

Definition at line 109 of file OSmps2OS.h.


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