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
34#pragma GCC visibility push(default)
35namespace abacus {
36
37class Constraint;
38class Variable;
39class Master;
40
41
43
53public:
54
56 enum INFEAS {
57 TooSmall = -1,
59 TooLarge
60 };
61
63
68 InfeasCon(Master *master, Constraint *con, INFEAS inf) :
69 master_(master),
70 constraint_(con),
71 infeas_(inf)
72 { }
73
75 Constraint *constraint() const { return constraint_; }
76
77
79 INFEAS infeas() const { return infeas_; }
80
82
85 bool goodVar(const Variable *v) const;
86
87private:
88
91
94
97};
98
99}
100#pragma GCC visibility pop
Base class of all other classes of ABACUS.
Definition abacusroot.h:69
Forms the virtual base class for all possible constraints given in pool format.
Definition constraint.h:57
Infeasible constraints.
Definition infeascon.h:52
Constraint * constraint() const
Returns a pointer to the infeasible constraint.
Definition infeascon.h:75
Constraint * constraint_
A pointer to the infeasible constraint.
Definition infeascon.h:93
INFEAS
The different ways of infeasibility of a constraint.
Definition infeascon.h:56
@ Feasible
The constraint is not infeasible.
Definition infeascon.h:58
InfeasCon(Master *master, Constraint *con, INFEAS inf)
The constructor.
Definition infeascon.h:68
INFEAS infeas() const
Returns the way of infeasibility of the constraint.
Definition infeascon.h:79
Master * master_
A pointer to the corresponding master of the optimization.
Definition infeascon.h:90
INFEAS infeas_
The way of infeasibility.
Definition infeascon.h:96
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:70
Forms the virtual base class for all possible variables given in pool format.
Definition variable.h:60
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117