Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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