Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
infeascon.h
Go to the documentation of this file.
1
30#pragma once
31
33
34namespace abacus {
35
36class Constraint;
37class Variable;
38class Master;
39
40
42
52public:
53
55 enum INFEAS {
56 TooSmall = -1,
58 TooLarge
59 };
60
62
68 master_(master),
69 constraint_(con),
70 infeas_(inf)
71 { }
72
74 Constraint *constraint() const { return constraint_; }
75
76
78 INFEAS infeas() const { return infeas_; }
79
81
84 bool goodVar(const Variable *v) const;
85
86private:
87
90
93
96};
97
98}
Base class of all other classes of ABACUS.
Definition abacusroot.h:68
Forms the virtual base class for all possible constraints given in pool format.
Definition constraint.h:56
Infeasible constraints.
Definition infeascon.h:51
Constraint * constraint() const
Returns a pointer to the infeasible constraint.
Definition infeascon.h:74
Constraint * constraint_
A pointer to the infeasible constraint.
Definition infeascon.h:92
INFEAS
The different ways of infeasibility of a constraint.
Definition infeascon.h:55
@ Feasible
The constraint is not infeasible.
Definition infeascon.h:57
InfeasCon(Master *master, Constraint *con, INFEAS inf)
The constructor.
Definition infeascon.h:67
INFEAS infeas() const
Returns the way of infeasibility of the constraint.
Definition infeascon.h:78
Master * master_
A pointer to the corresponding master of the optimization.
Definition infeascon.h:89
INFEAS infeas_
The way of infeasibility.
Definition infeascon.h:95
bool goodVar(const Variable *v) const
Returns true if the variable v might reduce the infeasibility, false otherwise.
The master of the optimization.
Definition master.h:69
Forms the virtual base class for all possible variables given in pool format.
Definition variable.h:59
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()