OSmps2OS.h
Go to the documentation of this file.
1 /* $Id: OSmps2OS.h 4562 2013-01-02 12:31:12Z Gassmann $ */
16 #ifndef OSMPS2OS_H
17 #define OSMPS2OS_H
18 
19 
20 #include <CoinMpsIO.hpp>
21 #include <CoinPackedMatrix.hpp>
22 #include <string>
23 #include "OSInstance.h"
24 #include "OSOption.h"
25 #include "OSoLReader.h"
26 
27 
39 class OSmps2OS
40 {
41 public:
43  OSmps2OS( std::string mpsfilename);
44 
46  ~OSmps2OS();
47 
49  void setOsol(std::string osol);
50 
52  void setJobID(std::string jobID);
53 
60  bool createOSObjects();
61 
66 
71 
77 
82  std::string osol;
83 
88  std::string jobID;
89 private:
91  CoinMpsIO *m_MpsData;
92 
94  CoinPackedMatrix *m_CoinPackedMatrix;
95 
97  int m_nOfSOS;
98  CoinSet ** m_SOS;
99 
103  double * m_quadElements;
104 
107  int * m_coneStart;
108  int * m_coneIdx;
109  int * m_coneType;
110 };
111 #endif
112 
int * m_quadColumnStart
Data structures to hold the quadratic objective.
Definition: OSmps2OS.h:101
double * m_quadElements
Definition: OSmps2OS.h:103
int * m_coneType
Definition: OSmps2OS.h:109
OSInstance * osinstance
osinstance is a pointer to the OSInstance object that gets created from the instance represented in M...
Definition: OSmps2OS.h:65
int m_nOfSOS
Data structures to hold special ordered sets.
Definition: OSmps2OS.h:97
std::string jobID
jobID is a string containing a jobID that may have been supplied on the command line (it may be empty...
Definition: OSmps2OS.h:88
int * m_coneStart
Definition: OSmps2OS.h:107
The Option Class.
Definition: OSOption.h:3564
int * m_quadColumnIdx
Definition: OSmps2OS.h:102
std::string osol
osol is a string containing the content of the OS option file (it may be empty if no option file was ...
Definition: OSmps2OS.h:82
void setOsol(std::string osol)
set the osol string
The OSmps2OS Class.
Definition: OSmps2OS.h:39
int m_nOfCones
Data structures to hold the cone information.
Definition: OSmps2OS.h:106
OSOption * osoption
osoption is a pointer to an OSOption object that gets created if the MPS file contains nonstandard se...
Definition: OSmps2OS.h:70
void setJobID(std::string jobID)
set the job ID
~OSmps2OS()
the OSmps2os class destructor
Definition: OSmps2OS.cpp:145
OSoLReader * osolreader
we may need to parse an OSoL file if the MPS file contains an SOS os BASIS section ...
Definition: OSmps2OS.h:76
bool createOSObjects()
create an OSInstance from the MPS instance representation and an OSOption in case of nonstandard sect...
Definition: OSmps2OS.cpp:192
OSmps2OS(std::string mpsfilename)
the OSmps2OS class constructor
Definition: OSmps2OS.cpp:24
CoinPackedMatrix * m_CoinPackedMatrix
m_CoinPackedMatrix is a pointer to a CoinPackedMatrix object
Definition: OSmps2OS.h:94
int * m_coneIdx
Definition: OSmps2OS.h:108
CoinMpsIO * m_MpsData
m_MpsData is a pointer to a CoinMpsIO object
Definition: OSmps2OS.h:91
Used to read an OSoL string.
Definition: OSoLReader.h:37
The in-memory representation of an OSiL instance..
Definition: OSInstance.h:2262
CoinSet ** m_SOS
Definition: OSmps2OS.h:98