Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

conclass.h
Go to the documentation of this file.
1 
30 #pragma once
31 
32 #include <ogdf/lib/abacus/master.h>
33 
34 #pragma GCC visibility push(default)
35 namespace abacus {
36 
37 
39 
46 public:
47 
58  const Master *master,
59  bool discrete,
60  bool allVarBinary,
61  bool trivial,
62  bool bound,
63  bool varBound)
64  :
65  discrete_(discrete),
66  allVarBinary_(allVarBinary),
67  trivial_(trivial),
68  bound_(bound),
69  varBound_(varBound)
70  { }
71 
73  friend OGDF_EXPORT std::ostream &operator<<(std::ostream &out, const ConClass &rhs);
74 
76  bool allVarBinary() const { return allVarBinary_; }
77 
79  bool trivial() const { return trivial_; }
80 
81 
82 private:
83 
84  bool discrete_;
85 
88 
90  bool trivial_;
91 
93  bool bound_;
94 
96  bool varBound_;
97 };
98 
99 }
100 #pragma GCC visibility pop
abacus::ConClass::allVarBinary
bool allVarBinary() const
Returns true if all variables with nonzero coefficients of the constraint are binary.
Definition: conclass.h:76
abacus::ConClass::trivial
bool trivial() const
Returns true if the constraint is a bound or a variable upper bound.
Definition: conclass.h:79
abacus::ConClass::ConClass
ConClass(const Master *master, bool discrete, bool allVarBinary, bool trivial, bool bound, bool varBound)
The constructor initializes the constraint classification with.
Definition: conclass.h:57
abacus::operator<<
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
abacus::ConClass::allVarBinary_
bool allVarBinary_
true if all variables are binary.
Definition: conclass.h:87
abacus
Definition: ILPClusterPlanarity.h:50
abacus::AbacusRoot
Base class of all other classes of ABACUS.
Definition: abacusroot.h:69
abacus::ConClass::trivial_
bool trivial_
true if it is a bound or a variable lower/upper bound.
Definition: conclass.h:90
abacus::ConClass
Constraint classification.
Definition: conclass.h:45
abacus::ConClass::discrete_
bool discrete_
Definition: conclass.h:84
master.h
the master of the optimization.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition: config.h:117
abacus::ConClass::bound_
bool bound_
true if the constraint is a bound of the variable.
Definition: conclass.h:93
abacus::ConClass::varBound_
bool varBound_
true if the constraint is a variable lower/upper bound.
Definition: conclass.h:96
abacus::Master
The master of the optimization.
Definition: master.h:70