63 std::cout <<
"LP solved to optimality.\n";
64 std::cout <<
"Objective value is " << mysoplex.
objValueReal() <<
".\n";
65 std::cout <<
"Primal solution is [" << prim[0] <<
", " << prim[1] <<
"].\n";
66 std::cout <<
"Dual solution is [" << dual[0] <<
"].\n";
THREADLOCAL const Real infinity
bool getPrimalReal(VectorReal &vector)
gets the primal solution vector if available; returns true on success
void addColReal(const LPCol &lpcol)
adds a single column
void add(const SVectorBase< S > &vec)
Append nonzeros of sv.
SPxSolver::Status optimize()
optimize the given LP
LP has been solved to optimality.
Preconfigured SoPlex LP solver.
Everything should be within this namespace.
bool getDualReal(VectorReal &vector)
gets the dual solution vector if available; returns true on success
Preconfigured SoPlex LP-solver.
bool writeFileReal(const char *filename, const NameSet *rowNames=0, const NameSet *colNames=0, const DIdxSet *intvars=0, const bool unscale=true) const
writes real LP to file; LP or MPS format is chosen from the extension in filename; if rowNames and co...
void addRowReal(const LPRowReal &lprow)
adds a single row
bool setIntParam(const IntParam param, const int value, const bool init=true)
sets integer parameter value; returns true on success
Real objValueReal()
returns the objective value if a primal solution is available