Status of slack variables. More...
#include <ogdf/lib/abacus/slackstat.h>
Public Types | |
enum | STATUS { Basic, NonBasicZero, NonBasicNonZero, Unknown } |
The different statuses of a slack variable. More... | |
Public Member Functions | |
SlackStat () | |
Initializes the status to Unknown. More... | |
SlackStat (STATUS status) | |
Initializes the status to status. More... | |
STATUS | status () const |
Returns the status of the slack variable. More... | |
void | status (const SlackStat *stat) |
Sets the status to the status of stat. More... | |
void | status (STATUS stat) |
Sets the status of the slack variable to stat. More... | |
Public Member Functions inherited from abacus::AbacusRoot | |
virtual | ~AbacusRoot () |
The destructor. More... | |
Private Attributes | |
STATUS | status_ |
The status of the slack variable. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const SlackStat &rhs) |
Output operator for slack statuses. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from abacus::AbacusRoot | |
static bool | ascii2bool (const string &str) |
Converts the string str to a boolean value. More... | |
static bool | endsWith (const string &str, const string &end) |
Returns true if str ends with end, false otherwise. More... | |
static double | fracPart (double x) |
Returns the absolute value of the fractional part of x. More... | |
static const char * | onOff (bool value) |
Converts a boolean variable to the strings "on" and "off". More... | |
Status of slack variables.
As for the structural variables the simplex method also assigns a unique status to each slack variable. A slack variable can be a basic or a nonbasic variable. If it is a nonbasic variable, then we distinguish if the slack variable has value zero or nonzero.
Definition at line 47 of file slackstat.h.
The different statuses of a slack variable.
Definition at line 51 of file slackstat.h.
|
inline |
Initializes the status to Unknown.
Definition at line 64 of file slackstat.h.
|
inline |
Initializes the status to status.
status | The slack variable receives the status status. |
Definition at line 70 of file slackstat.h.
|
inline |
Returns the status of the slack variable.
Definition at line 86 of file slackstat.h.
|
inline |
Sets the status to the status of stat.
stat | The status of the slack variable is set to *stat. |
Definition at line 100 of file slackstat.h.
|
inline |
Sets the status of the slack variable to stat.
stat | The new status of the slack variable. |
Definition at line 93 of file slackstat.h.
|
friend |
Output operator for slack statuses.
The output operator writes the status to an output stream in the format Basic
, NonBasicZero
, NonBasicNonZero
, or Unknown
.
out | The output stream. |
rhs | The status being output. |
|
private |
The status of the slack variable.
Definition at line 105 of file slackstat.h.