Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

infeascon.h
Go to the documentation of this file.
1 
30 #pragma once
31 
33 
34 namespace abacus {
35 
36 class Constraint;
37 class Variable;
38 class Master;
39 
40 
42 
52 public:
53 
55  enum INFEAS {
56  TooSmall = -1,
58  TooLarge
59  };
60 
62 
67  InfeasCon(Master *master, Constraint *con, INFEAS inf) :
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 
86 private:
87 
90 
93 
96 };
97 
98 }
abacus::InfeasCon::infeas
INFEAS infeas() const
Returns the way of infeasibility of the constraint.
Definition: infeascon.h:78
abacus::InfeasCon::InfeasCon
InfeasCon(Master *master, Constraint *con, INFEAS inf)
The constructor.
Definition: infeascon.h:67
abacusroot.h
abacus
Definition: ILPClusterPlanarity.h:50
abacus::InfeasCon::infeas_
INFEAS infeas_
The way of infeasibility.
Definition: infeascon.h:95
abacus::InfeasCon
Infeasible constraints.
Definition: infeascon.h:51
ogdf::AlgorithmFailureCode::Constraint
@ Constraint
abacus::AbacusRoot
Base class of all other classes of ABACUS.
Definition: abacusroot.h:68
abacus::InfeasCon::constraint_
Constraint * constraint_
A pointer to the infeasible constraint.
Definition: infeascon.h:92
abacus::Variable
Forms the virtual base class for all possible variables given in pool format.
Definition: variable.h:59
ogdf::AlgorithmFailureCode::Variable
@ Variable
abacus::InfeasCon::Feasible
@ Feasible
The constraint is not infeasible.
Definition: infeascon.h:57
abacus::InfeasCon::master_
Master * master_
A pointer to the corresponding master of the optimization.
Definition: infeascon.h:89
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
abacus::Constraint
Forms the virtual base class for all possible constraints given in pool format.
Definition: constraint.h:56
abacus::InfeasCon::constraint
Constraint * constraint() const
Returns a pointer to the infeasible constraint.
Definition: infeascon.h:74
abacus::InfeasCon::INFEAS
INFEAS
The different ways of infeasibility of a constraint.
Definition: infeascon.h:55
abacus::Master
The master of the optimization.
Definition: master.h:69