25 #define SOPLEX_DEBUG_SOLBASE 307 #ifdef SOPLEX_DEBUG_SOLBASE 309 #undef SOPLEX_DEBUG_SOLBASE 312 #endif // _SOLBASE_H_ int totalSizeDual(const int base=2) const
returns total size of dual solution
bool getPrimalSol(VectorBase< R > &vector) const
gets the primal solution vector; returns true on success
Dense vector.Class VectorBase provides dense linear algebra vectors. Internally, VectorBase wraps std...
int totalSizePrimal(const int base=2) const
returns total size of primal solution
bool getSlacks(VectorBase< R > &vector) const
gets the vector of slack values; returns true on success
VectorBase< R > _dualFarkas
bool getRedCostSol(VectorBase< R > &vector) const
gets the vector of reduced cost values if available; returns true on success
SolBase< R > & operator=(const SolBase< R > &sol)
assignment operator only for friends
bool hasDualFarkas() const
is a dual farkas ray available?
unsigned int _hasPrimalRay
bool getDualSol(VectorBase< R > &vector) const
gets the dual solution vector; returns true on success
VectorBase< R > _primalRay
int dlcmSizeDual(const int base=2) const
returns size of least common multiple of denominators in dual solution
unsigned int _hasDualFarkas
SolBase< R > & operator=(const SolBase< S > &sol)
assignment operator only for friends
bool getPrimalRaySol(VectorBase< R > &vector) const
gets the primal unbounded ray if available; returns true on success
bool isPrimalFeasible() const
is the stored solution primal feasible?
Class for storing a primal-dual solution with basis information.
int dmaxSizeDual(const int base=2) const
returns size of largest denominator in dual solution
bool isDualFeasible() const
is a dual solution available?
int dlcmSizePrimal(const int base=2) const
returns size of least common multiple of denominators in primal solution
Collection of dense, sparse, and semi-sparse vectors.
Everything should be within this namespace.
bool getDualFarkasSol(VectorBase< R > &vector) const
gets the Farkas proof if available; returns true on success
int totalSizeRational(const Rational *vector, const int length, const int base)
Total size of rational vector.
int dmaxSizePrimal(const int base=2) const
returns size of largest denominator in primal solution
unsigned int _isPrimalFeasible
void invalidate()
invalidate solution
bool hasPrimalRay() const
is a primal unbounded ray available?
unsigned int _isDualFeasible
int dmaxSizeRational(const Rational *vector, const int length, const int base)
Size of largest denominator in rational vector.
int dlcmSizeRational(const Rational *vector, const int length, const int base)
Size of least common multiple of denominators in rational vector.