Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
slackstat.h
Go to the documentation of this file.
1
30#pragma once
31
33
34namespace abacus {
35
36class AbacusGlobal;
37
38
40
47class SlackStat : public AbacusRoot {
48public:
49
62
65
67
71
73
83 friend std::ostream &operator<<(std::ostream& out, const SlackStat &rhs);
84
86 STATUS status() const { return status_; }
87
88
90
94
95
97
100 void status(const SlackStat *stat) { status_ = stat->status_; }
101
102
103private:
104
106
108};
109
110}
Base class of all other classes of ABACUS.
Definition abacusroot.h:68
Status of slack variables.
Definition slackstat.h:47
friend std::ostream & operator<<(std::ostream &out, const SlackStat &rhs)
Output operator for slack statuses.
STATUS status_
The status of the slack variable.
Definition slackstat.h:105
STATUS
The different statuses of a slack variable.
Definition slackstat.h:51
@ Unknown
The status of the slack variable is not known since no linear program with the corresponding constrai...
Definition slackstat.h:60
@ NonBasicNonZero
The slack variable does not belong to the basis and has a nonzero value.
Definition slackstat.h:57
@ NonBasicZero
The slack variable does not belong to the basis and has value zero.
Definition slackstat.h:55
@ Basic
The slack variable belongs to the basis.
Definition slackstat.h:53
void status(STATUS stat)
Sets the status of the slack variable to stat.
Definition slackstat.h:93
void status(const SlackStat *stat)
Sets the status to the status of stat.
Definition slackstat.h:100
STATUS status() const
Returns the status of the slack variable.
Definition slackstat.h:86
SlackStat(STATUS status)
Initializes the status to status.
Definition slackstat.h:70
SlackStat()
Initializes the status to Unknown.
Definition slackstat.h:64
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Definition memory.h:84
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()