9 # pragma warning(disable:4786)
50 inline const char *
periodName ( )
const {
return periodName_;}
51 inline const char *
scenarioNew ( )
const {
return columnName_;}
62 combineRuleSet(false),prob_(0.0){}
92 void writeSmps(
const char* filename,
bool winFileExtensions =
false,
bool strictFormat =
true);
94 SmiSmpsIO():
CoinMpsIO(),nstag_(0),cstag_(NULL),rstag_(NULL),solverInf_(
COIN_DBL_MAX),iftime(false),ifstoch(false),smpsCardReader_(NULL),combineRule_(NULL),combineRuleSet(false),core(NULL),tree(NULL),periodMap_(),scenarioMap_() {}
95 SmiSmpsIO(
SmiCoreData * core,
SmiScenarioTree<SmiScnNode *> * smiTree):
CoinMpsIO(),nstag_(0),cstag_(NULL),rstag_(NULL),solverInf_(
COIN_DBL_MAX),iftime(false),ifstoch(false),smpsCardReader_(NULL),combineRule_(NULL),combineRuleSet(false),core(core),tree(smiTree),periodMap_(),scenarioMap_() {}
97 ~SmiSmpsIO(){
delete [] cstag_;
delete[] rstag_;
delete smpsCardReader_;}
107 void writeCoreFile(
const char* filename,
const char* extension,
const bool strictFormat);
117 void writeTimeFile(
const char* filename,
const char* extension,
const bool strictFormat);
126 void writeStochFile(
const char* filename,
const char* extension,
const bool strictFormat);
131 void writeScenarioToStochFile(std::ostringstream& stream,
SmiTreeNode<SmiScnNode *> * node,
int scenario,
bool strictFormat);
133 std::string getModProblemName();
162 #endif //#define SmiSmpsIO_HPP
SmiCoreCombineRule * getCoreCombineRule()
void setCoreCombineRule(SmiCoreCombineRule *r)
std::map< string, int > StringIntMap
double getSolverInfinity() const
const char * scenarioAnc() const
SmiCoreCombineRule * combineRule_
void setSolverInfinity(double solverInf)
SmiSectionType whichSmpsSection()
const char * periodName() const
SmiScnModel: COIN-SMI Scenario Model Class.
SmiSmpsCardReader(CoinFileInput *input, CoinMpsIO *reader)
Constructor expects file to be open This one takes gzFile if fp null.
void setCoreCombineRule(SmiCoreCombineRule *r)
StringIntMap scenarioMap_
SmiScenarioTree< SmiScnNode * > * tree
SmiSectionType smiSection_
#define COIN_MAX_FIELD_LENGTH
SmiSmpsIO(SmiCoreData *core, SmiScenarioTree< SmiScnNode * > *smiTree)
SmiSmpsType whichSmpsType()
SmiCoreCombineRule * getCoreCombineRule()
This deals with combining Core and Stochastic data.
const double COIN_DBL_MAX
SmiCoreCombineRule * combineRule_
SmiSmpsCardReader * smpsCardReader_
const char * scenarioNew() const
Very simple code for reading MPS data.