Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
numvar.h
Go to the documentation of this file.
1
30#pragma once
31
33
34#pragma GCC visibility push(default)
35namespace abacus {
36
37
39
43class OGDF_EXPORT NumVar : public Variable {
44public:
45
47
64 NumVar(Master *master,
65 const Sub *sub,
66 int number,
67 bool dynamic,
68 bool local,
69 double obj,
70 double lBound,
71 double uBound,
72 VarType::TYPE type)
73 : Variable(master, sub, dynamic, local, obj, lBound, uBound, type), number_(number)
74 { }
75
77 virtual ~NumVar() { }
78
80
86 friend std::ostream &operator<<(std::ostream &out, const NumVar &rhs) {
87 return out << '(' << rhs.number_ << ')' << std::endl;
88 }
89
91 int number() const { return number_; }
92
93protected:
94
97};
98
99}
100#pragma GCC visibility pop
The master of the optimization.
Definition master.h:70
Variables identified by a number.
Definition numvar.h:43
int number() const
Returns the number of the variable.
Definition numvar.h:91
int number_
The identification number of the variable.
Definition numvar.h:96
virtual ~NumVar()
The destructor.
Definition numvar.h:77
friend std::ostream & operator<<(std::ostream &out, const NumVar &rhs)
Writes the number of the variable to an output stream.
Definition numvar.h:86
NumVar(Master *master, const Sub *sub, int number, bool dynamic, bool local, double obj, double lBound, double uBound, VarType::TYPE type)
The constructor.
Definition numvar.h:64
The subproblem.
Definition sub.h:69
TYPE
The enumeration with the different variable types.
Definition vartype.h:48
Forms the virtual base class for all possible variables given in pool format.
Definition variable.h:60
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
variable.