Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 ostream &operator<<(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 } //namespace abacus
bool allVarBinary() const
Returns true if all variables with nonzero coefficients of the constraint are binary.
Definition: conclass.h:75
Base class of all other classes of ABACUS.
Definition: abacusroot.h:64
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:99
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
the master of the optimization.
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 allVarBinary_
true if all variables are binary.
Definition: conclass.h:86
bool trivial() const
Returns true if the constraint is a bound or a variable upper bound.
Definition: conclass.h:78
bool trivial_
true if it is a bound or a variable lower/upper bound.
Definition: conclass.h:89
Constraint classification.
Definition: conclass.h:44
ostream & operator<<(ostream &out, const Active< BaseType, CoType > &rhs)