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 namespace abacus {
35 
36 
38 
45 public:
46 
57  const Master *master,
58  bool discrete,
59  bool allVarBinary,
60  bool trivial,
61  bool bound,
62  bool varBound)
63  :
64  discrete_(discrete),
65  allVarBinary_(allVarBinary),
66  trivial_(trivial),
67  bound_(bound),
68  varBound_(varBound)
69  { }
70 
72  friend OGDF_EXPORT std::ostream &operator<<(std::ostream &out, const ConClass &rhs);
73 
75  bool allVarBinary() const { return allVarBinary_; }
76 
78  bool trivial() const { return trivial_; }
79 
80 
81 private:
82 
83  bool discrete_;
84 
87 
89  bool trivial_;
90 
92  bool bound_;
93 
95  bool varBound_;
96 };
97 
98 }
abacus::ConClass::allVarBinary
bool allVarBinary() const
Returns true if all variables with nonzero coefficients of the constraint are binary.
Definition: conclass.h:75
abacus::ConClass::trivial
bool trivial() const
Returns true if the constraint is a bound or a variable upper bound.
Definition: conclass.h:78
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:56
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:86
abacus
Definition: ILPClusterPlanarity.h:50
abacus::AbacusRoot
Base class of all other classes of ABACUS.
Definition: abacusroot.h:68
abacus::ConClass::trivial_
bool trivial_
true if it is a bound or a variable lower/upper bound.
Definition: conclass.h:89
abacus::ConClass
Constraint classification.
Definition: conclass.h:44
abacus::ConClass::discrete_
bool discrete_
Definition: conclass.h:83
master.h
the master of the optimization.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
abacus::ConClass::bound_
bool bound_
true if the constraint is a bound of the variable.
Definition: conclass.h:92
abacus::ConClass::varBound_
bool varBound_
true if the constraint is a variable lower/upper bound.
Definition: conclass.h:95
abacus::Master
The master of the optimization.
Definition: master.h:69