43 ofname = std::string(filename) +
".set";
44 ofs.open(ofname.c_str());
52 ofs <<
"# run SoPlex as follows:" << std::endl;
53 ofs <<
"# bin/soplex --loadset=spxcheck.set --readbas=spxcheck.bas spxcheck.mps\n" << std::endl;
56 ofs <<
"int:pricer = ";
57 if (!strcmp(
pricer()->getName(),
"Auto"))
58 ofs <<
" 0" << std::endl;
59 else if (!strcmp(
pricer()->getName(),
"Dantzig"))
60 ofs <<
"1" << std::endl;
61 else if (!strcmp(
pricer()->getName(),
"ParMult"))
62 ofs <<
"2" << std::endl;
63 else if (!strcmp(
pricer()->getName(),
"Devex"))
64 ofs <<
"3" << std::endl;
65 else if (!strcmp(
pricer()->getName(),
"Steep"))
66 ofs <<
"4" << std::endl;
67 else if (!strcmp(
pricer()->getName(),
"SteepEx"))
68 ofs <<
"5" << std::endl;
69 ofs <<
"int:ratiotester = ";
71 ofs <<
"0" << std::endl;
72 else if (!strcmp(
ratiotester()->getName(),
"Harris"))
73 ofs <<
"1" << std::endl;
75 ofs <<
"2" << std::endl;
76 else if (!strcmp(
ratiotester()->getName(),
"Bound Flipping"))
77 ofs <<
"3" << std::endl;
78 ofs <<
"real:feastol = " <<
feastol() << std::endl;
79 ofs <<
"real:opttol = " <<
opttol() << std::endl;
80 ofs <<
"real:epsilon_zero = " <<
epsilon() << std::endl;
81 ofs <<
"real:infty = " <<
infinity << std::endl;
85 ofname = std::string(filename) +
".mps";
86 ofs.open(ofname.c_str());
90 writeMPS(ofs, rowNames, colNames, NULL);
94 ofname = std::string(filename) +
".bas";
95 return writeBasisFile(ofname.c_str(), rowNames, colNames, cpxFormat);
SoPlex start basis generation base class.
Representation rep() const
return the current basis representation.
Abstract pricer base class.
Abstract ratio test base class.
Implementation of Sparse Linear Solver.
Sparse Linear Solver virtual base class.
Real opttol() const
allowed optimality, i.e., dual feasibility tolerance.
const SPxRatioTester * ratiotester() const
return loaded SPxRatioTester.
const SPxBasis & basis() const
Return current basis.
const SPxPricer * pricer() const
return loaded SPxPricer.
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.
virtual bool writeBasisFile(const char *filename, const NameSet *rowNames, const NameSet *colNames, const bool cpxFormat=false) const
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...
Everything should be within this namespace.
Real feastol() const
allowed primal feasibility tolerance.
Real epsilon() const
values are considered to be 0.
int getMaxUpdates() const
returns maximum number of updates before a refactorization is performed
#define SOPLEX_SUBVERSION
virtual bool writeState(const char *filename, const NameSet *rowNames=NULL, const NameSet *colNames=NULL, const bool cpxFormat=false) const
columnwise representation.