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
34#pragma GCC visibility push(default)
35namespace abacus {
36
37class AbacusGlobal;
38
39
41
48class SlackStat : public AbacusRoot {
49public:
50
63
66
68
72
74
84 friend std::ostream &operator<<(std::ostream& out, const SlackStat &rhs);
85
87 STATUS status() const { return status_; }
88
89
91
94 void status(STATUS stat) { status_ = stat; }
95
96
98
101 void status(const SlackStat *stat) { status_ = stat->status_; }
102
103
104private:
105
107
109};
110
111}
112#pragma GCC visibility pop
Base class of all other classes of ABACUS.
Definition abacusroot.h:69
Status of slack variables.
Definition slackstat.h:48
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:106
STATUS
The different statuses of a slack variable.
Definition slackstat.h:52
@ Unknown
The status of the slack variable is not known since no linear program with the corresponding constrai...
Definition slackstat.h:61
@ NonBasicNonZero
The slack variable does not belong to the basis and has a nonzero value.
Definition slackstat.h:58
@ NonBasicZero
The slack variable does not belong to the basis and has value zero.
Definition slackstat.h:56
@ Basic
The slack variable belongs to the basis.
Definition slackstat.h:54
void status(STATUS stat)
Sets the status of the slack variable to stat.
Definition slackstat.h:94
void status(const SlackStat *stat)
Sets the status to the status of stat.
Definition slackstat.h:101
STATUS status() const
Returns the status of the slack variable.
Definition slackstat.h:87
SlackStat(STATUS status)
Initializes the status to status.
Definition slackstat.h:71
SlackStat()
Initializes the status to Unknown.
Definition slackstat.h:65
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Definition memory.h:85