43 ofname = std::string(filename) +
".set";
44 ofs.open(ofname.c_str());
53 ofs <<
"# run SoPlex as follows:" << std::endl;
54 ofs <<
"# bin/soplex --loadset=spxcheck.set --readbas=spxcheck.bas spxcheck.mps\n" << std::endl;
57 ofs <<
"int:pricer = ";
59 if(!strcmp(
pricer()->getName(),
"Auto"))
60 ofs <<
" 0" << std::endl;
61 else if(!strcmp(
pricer()->getName(),
"Dantzig"))
62 ofs <<
"1" << std::endl;
63 else if(!strcmp(
pricer()->getName(),
"ParMult"))
64 ofs <<
"2" << std::endl;
65 else if(!strcmp(
pricer()->getName(),
"Devex"))
66 ofs <<
"3" << std::endl;
67 else if(!strcmp(
pricer()->getName(),
"Steep"))
68 ofs <<
"4" << std::endl;
69 else if(!strcmp(
pricer()->getName(),
"SteepEx"))
70 ofs <<
"5" << std::endl;
72 ofs <<
"int:ratiotester = ";
75 ofs <<
"0" << std::endl;
76 else if(!strcmp(
ratiotester()->getName(),
"Harris"))
77 ofs <<
"1" << std::endl;
79 ofs <<
"2" << std::endl;
80 else if(!strcmp(
ratiotester()->getName(),
"Bound Flipping"))
81 ofs <<
"3" << std::endl;
83 ofs <<
"real:feastol = " <<
feastol() << std::endl;
84 ofs <<
"real:opttol = " <<
opttol() << std::endl;
85 ofs <<
"real:epsilon_zero = " <<
epsilon() << std::endl;
86 ofs <<
"real:infty = " <<
infinity << std::endl;
87 ofs <<
"uint:random_seed = " <<
random.
getSeed() << std::endl;
91 ofname = std::string(filename) +
".mps";
92 ofs.open(ofname.c_str());
97 writeMPS(ofs, rowNames, colNames, NULL);
101 ofname = std::string(filename) +
".bas";
102 return writeBasisFile(ofname.c_str(), rowNames, colNames, cpxFormat);
SoPlex start basis generation base class.
THREADLOCAL const Real infinity
const SPxRatioTester * ratiotester() const
return loaded SPxRatioTester.
Abstract pricer base class.
Real feastol() const
allowed primal feasibility tolerance.
Abstract ratio test base class.
Implementation of Sparse Linear Solver.
Sparse Linear Solver virtual base class.
const SPxPricer * pricer() const
return loaded SPxPricer.
int getMaxUpdates() const
returns maximum number of updates before a refactorization is performed
virtual bool writeState(const char *filename, const NameSet *rowNames=NULL, const NameSet *colNames=NULL, const bool cpxFormat=false) const
Real epsilon() const
values are considered to be 0.
Debugging, floating point type and parameter definitions.
Set of strings.Class NameSet implements a symbol or name table. It allows to store or remove names (i...
virtual bool writeBasisFile(const char *filename, const NameSet *rowNames, const NameSet *colNames, const bool cpxFormat=false) const
Everything should be within this namespace.
virtual void writeMPS(std::ostream &out, const NameSet *rowNames, const NameSet *colNames, const DIdxSet *p_intvars=0) const
Writes a file in MPS format to out.
uint32_t getSeed() const
returns the initial seed shift
Random random
The random number generator used throughout the whole computation. Its seed can be modified...
#define SOPLEX_SUBVERSION
Real opttol() const
allowed optimality, i.e., dual feasibility tolerance.
const SPxBasis & basis() const
Return current basis.
Representation rep() const
return the current basis representation.
columnwise representation.