SmiSmpsIO Class Reference
#include <SmiSmpsIO.hpp>
List of all members.
Public Member Functions |
| SmiCoreData * | readTimeFile (SmiScnModel *smi, const char *c, const char *ext="time") |
| int | readStochFile (SmiScnModel *smi, SmiCoreData *core, const char *c, const char *ext="stoch") |
| void | setCoreCombineRule (SmiCoreCombineRule *r) |
| SmiCoreCombineRule * | getCoreCombineRule () |
| int | getNumStages () |
| int * | getColumnStages () |
| int * | getRowStages () |
| void | setSolverInfinity (double solverInf) |
| double | getSolverInfinity () const |
| void | writeSmps (const char *filename, bool winFileExtensions=false, bool strictFormat=true) |
| | SmiSmpsIO () |
| | SmiSmpsIO (SmiCoreData *core, SmiScenarioTree< SmiScnNode * > *smiTree) |
| | ~SmiSmpsIO () |
Private Types |
| typedef std::map< string, int > | StringIntMap |
Private Member Functions |
| void | writeCoreFile (const char *filename, const char *extension, const bool strictFormat) |
| | This method writes the core file for the current model by invoking writeMPS() from CoinMpsIO.
|
| void | writeTimeFile (const char *filename, const char *extension, const bool strictFormat) |
| | Writes the time file for the current model, containing the assignments from rows and columns to stages.
|
| void | writeStochFile (const char *filename, const char *extension, const bool strictFormat) |
| | Writes the stoch file for the current model, containing the stochastic data.
|
| void | writeScenarioToStochFile (std::ostringstream &stream, SmiTreeNode< SmiScnNode * > *node, int scenario, bool strictFormat) |
| | Writes the stochastic informations for the given scenario into the stream.
|
| std::string | getModProblemName () |
Private Attributes |
| int | nstag_ |
| int * | cstag_ |
| int * | rstag_ |
| double | solverInf_ |
| bool | iftime |
| bool | ifstoch |
| SmiSmpsCardReader * | smpsCardReader_ |
| SmiCoreCombineRule * | combineRule_ |
| bool | combineRuleSet |
| SmiCoreData * | core |
| SmiScenarioTree< SmiScnNode * > * | tree |
| StringIntMap | periodMap_ |
| StringIntMap | scenarioMap_ |
Detailed Description
Definition at line 76 of file SmiSmpsIO.hpp.
Member Typedef Documentation
Constructor & Destructor Documentation
| SmiSmpsIO::SmiSmpsIO |
( |
|
) |
[inline] |
| SmiSmpsIO::~SmiSmpsIO |
( |
|
) |
[inline] |
Member Function Documentation
| int SmiSmpsIO::readStochFile |
( |
SmiScnModel * |
smi, |
|
|
SmiCoreData * |
core, |
|
|
const char * |
c, |
|
|
const char * |
ext = "stoch" | |
|
) |
| | |
| int SmiSmpsIO::getNumStages |
( |
|
) |
[inline] |
| int* SmiSmpsIO::getColumnStages |
( |
|
) |
[inline] |
| int* SmiSmpsIO::getRowStages |
( |
|
) |
[inline] |
| void SmiSmpsIO::setSolverInfinity |
( |
double |
solverInf |
) |
[inline] |
| double SmiSmpsIO::getSolverInfinity |
( |
|
) |
const [inline] |
| void SmiSmpsIO::writeSmps |
( |
const char * |
filename, |
|
|
bool |
winFileExtensions = false, |
|
|
bool |
strictFormat = true | |
|
) |
| | |
| void SmiSmpsIO::writeCoreFile |
( |
const char * |
filename, |
|
|
const char * |
extension, |
|
|
const bool |
strictFormat | |
|
) |
| | [private] |
This method writes the core file for the current model by invoking writeMPS() from CoinMpsIO.
- Parameters:
-
| filename | The filename. |
| extension | The file extension. |
| strictFormat | Whether a strict format should be used or not. |
| void SmiSmpsIO::writeTimeFile |
( |
const char * |
filename, |
|
|
const char * |
extension, |
|
|
const bool |
strictFormat | |
|
) |
| | [private] |
Writes the time file for the current model, containing the assignments from rows and columns to stages.
- Parameters:
-
| filename | The filename. |
| extension | The file extension. |
| strictFormat | Whether a strict format should be used or not. |
| void SmiSmpsIO::writeStochFile |
( |
const char * |
filename, |
|
|
const char * |
extension, |
|
|
const bool |
strictFormat | |
|
) |
| | [private] |
Writes the stoch file for the current model, containing the stochastic data.
- Parameters:
-
| filename | The filename. |
| extension | The file extension. |
| strictFormat | Whether a strict format should be used or not. |
| void SmiSmpsIO::writeScenarioToStochFile |
( |
std::ostringstream & |
stream, |
|
|
SmiTreeNode< SmiScnNode * > * |
node, |
|
|
int |
scenario, |
|
|
bool |
strictFormat | |
|
) |
| | [private] |
Writes the stochastic informations for the given scenario into the stream.
| std::string SmiSmpsIO::getModProblemName |
( |
|
) |
[private] |
Member Data Documentation
The documentation for this class was generated from the following file: