Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
conclass.h
Go to the documentation of this file.
1
30#pragma once
31
33
34namespace abacus {
35
36
38
45public:
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
81private:
82
84
87
90
92 bool bound_;
93
96};
97
98}
Base class of all other classes of ABACUS.
Definition abacusroot.h:68
Constraint classification.
Definition conclass.h:44
bool allVarBinary_
true if all variables are binary.
Definition conclass.h:86
bool bound_
true if the constraint is a bound of the variable.
Definition conclass.h:92
bool varBound_
true if the constraint is a variable lower/upper bound.
Definition conclass.h:95
bool allVarBinary() const
Returns true if all variables with nonzero coefficients of the constraint are binary.
Definition conclass.h:75
friend std::ostream & operator<<(std::ostream &out, const ConClass &rhs)
Output operator for constraint classifications.
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
bool trivial_
true if it is a bound or a variable lower/upper bound.
Definition conclass.h:89
bool trivial() const
Returns true if the constraint is a bound or a variable upper bound.
Definition conclass.h:78
The master of the optimization.
Definition master.h:69
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
the master of the optimization.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()