SoPlex
|
Class for storing a primal-dual solution with basis information. More...
#include <solbase.h>
Public Member Functions | |
bool | isPrimalFeasible () const |
is the stored solution primal feasible? | |
bool | getPrimalSol (VectorBase< R > &vector) const |
gets the primal solution vector; returns true on success | |
bool | getSlacks (VectorBase< R > &vector) const |
gets the vector of slack values; returns true on success | |
bool | hasPrimalRay () const |
is a primal unbounded ray available? | |
bool | getPrimalRaySol (VectorBase< R > &vector) const |
gets the primal unbounded ray if available; returns true on success | |
bool | isDualFeasible () const |
is a dual solution available? | |
bool | getDualSol (VectorBase< R > &vector) const |
gets the dual solution vector; returns true on success | |
bool | getRedCostSol (VectorBase< R > &vector) const |
gets the vector of reduced cost values if available; returns true on success | |
bool | hasDualFarkas () const |
is a dual farkas ray available? | |
bool | getDualFarkasSol (VectorBase< R > &vector) const |
gets the Farkas proof if available; returns true on success | |
int | totalSizePrimal (const int base=2) const |
returns total size of primal solution | |
int | totalSizeDual (const int base=2) const |
returns total size of dual solution | |
int | dlcmSizePrimal (const int base=2) const |
returns size of least common multiple of denominators in primal solution | |
int | dlcmSizeDual (const int base=2) const |
returns size of least common multiple of denominators in dual solution | |
int | dmaxSizePrimal (const int base=2) const |
returns size of largest denominator in primal solution | |
int | dmaxSizeDual (const int base=2) const |
returns size of largest denominator in dual solution | |
void | invalidate () |
invalidate solution |
Private Member Functions | |
SolBase () | |
default constructor only for friends | |
SolBase< R > & | operator= (const SolBase< R > &sol) |
assignment operator only for friends | |
template<class S> | |
SolBase< R > & | operator= (const SolBase< S > &sol) |
assignment operator only for friends |
Private Attributes | |
VectorBase< R > | _primal |
VectorBase< R > | _slacks |
VectorBase< R > | _primalRay |
VectorBase< R > | _dual |
VectorBase< R > | _redCost |
VectorBase< R > | _dualFarkas |
R | _objVal |
unsigned int | _isPrimalFeasible: 1 |
unsigned int | _hasPrimalRay: 1 |
unsigned int | _isDualFeasible: 1 |
unsigned int | _hasDualFarkas: 1 |
Friends | |
template<class T> | |
class | SoPlexBase |
template<class S> | |
class | SolBase |
Class for storing a primal-dual solution with basis information.
|
private |
int dlcmSizeDual | ( | const int | base = 2 | ) | const |
int dlcmSizePrimal | ( | const int | base = 2 | ) | const |
int dmaxSizeDual | ( | const int | base = 2 | ) | const |
int dmaxSizePrimal | ( | const int | base = 2 | ) | const |
bool getDualFarkasSol | ( | VectorBase< R > & | vector | ) | const |
bool getDualSol | ( | VectorBase< R > & | vector | ) | const |
bool getPrimalRaySol | ( | VectorBase< R > & | vector | ) | const |
bool getPrimalSol | ( | VectorBase< R > & | vector | ) | const |
bool getRedCostSol | ( | VectorBase< R > & | vector | ) | const |
bool getSlacks | ( | VectorBase< R > & | vector | ) | const |
bool hasDualFarkas | ( | ) | const |
bool hasPrimalRay | ( | ) | const |
void invalidate | ( | ) |
invalidate solution
Definition at line 220 of file solbase.h.
Referenced by SolBase< Real >::SolBase().
bool isDualFeasible | ( | ) | const |
bool isPrimalFeasible | ( | ) | const |
int totalSizeDual | ( | const int | base = 2 | ) | const |
int totalSizePrimal | ( | const int | base = 2 | ) | const |
|
private |
Definition at line 232 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 234 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 241 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 239 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 240 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 238 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 236 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 229 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 231 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 233 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().
|
private |
Definition at line 230 of file solbase.h.
Referenced by SolBase< Real >::operator=(), and SolBase< Real >::operator=().