Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 } //namespace abacus
Base class of all other classes of ABACUS.
Definition: abacusroot.h:64
The master of the optimization.
Definition: master.h:69
INFEAS
The different ways of infeasibility of a constraint.
Definition: infeascon.h:55
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Infeasible constraints.
Definition: infeascon.h:51
Forms the virtual base class for all possible constraints given in pool format.
Definition: constraint.h:56
Master * master_
A pointer to the corresponding master of the optimization.
Definition: infeascon.h:89
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
Forms the virtual base class for all possible variables given in pool format.
Definition: variable.h:59
INFEAS infeas_
The way of infeasibility.
Definition: infeascon.h:95
InfeasCon(Master *master, Constraint *con, INFEAS inf)
The constructor.
Definition: infeascon.h:67
The constraint is not infeasible.
Definition: infeascon.h:57
INFEAS infeas() const
Returns the way of infeasibility of the constraint.
Definition: infeascon.h:78