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