Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
fixcand.h
Go to the documentation of this file.
1
30#pragma once
31
33
34
35#pragma GCC visibility push(default)
36namespace abacus {
37
38class Master;
39class Sub;
40class FSVarStat;
41class Variable;
42class Constraint;
43
44template<class BaseType, class CoType> class CutBuffer;
45template<class BaseType, class CoType> class PoolSlotRef;
46
47
49
65
66 friend class Sub;
67 friend class Master;
68
69public:
70
72
75 FixCand(Master *master) :
76 master_(master),
77 candidates_(nullptr),
78 fsVarStat_(nullptr),
79 lhs_(nullptr)
80 { }
81
83 ~FixCand() { deleteAll(); }
84
85private:
86
88
91 void saveCandidates(Sub *sub);
92
94
108
110
113 void deleteAll();
114
116 void allocate(int nCand);
117
118
120
122
124
126
127 FixCand(const FixCand &rhs);
128 const FixCand &operator=(const FixCand &rhs);
129};
130
131}
132#pragma GCC visibility pop
Base class of all other classes of ABACUS.
Definition abacusroot.h:69
Cut buffers.
Definition cutbuffer.h:53
Candidates for fixing.
Definition fixcand.h:64
~FixCand()
The destructor.
Definition fixcand.h:83
const FixCand & operator=(const FixCand &rhs)
FixCand(const FixCand &rhs)
void saveCandidates(Sub *sub)
Memorizes suitable variables for fixing.
void fixByRedCost(CutBuffer< Variable, Constraint > *addVarBuffer)
Tries to fix as many candidates as possible.
ArrayBuffer< PoolSlotRef< Variable, Constraint > * > * candidates_
The candidates for fixing.
Definition fixcand.h:121
void deleteAll()
Deletes all allocated memory of members.
ArrayBuffer< double > * lhs_
The left hand side of the expression evaluated for fixing.
Definition fixcand.h:125
FixCand(Master *master)
Creates an empty set of candidates for fixing.
Definition fixcand.h:75
Master * master_
A pointer to the corresponding master of the optimization.
Definition fixcand.h:119
ArrayBuffer< FSVarStat * > * fsVarStat_
The fixing status of the candidates.
Definition fixcand.h:123
void allocate(int nCand)
Allocates memory to store nCand candidates for fixing.
The master of the optimization.
Definition master.h:70
The subproblem.
Definition sub.h:69
An array that keeps track of the number of inserted elements; also usable as an efficient stack.
Definition ArrayBuffer.h:64
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117