Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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