Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

fixcand.h
Go to the documentation of this file.
1 
30 #pragma once
31 
33 
34 
35 namespace abacus {
36 
37 class Master;
38 class Sub;
39 class FSVarStat;
40 class Variable;
41 class Constraint;
42 
43 template<class BaseType, class CoType> class CutBuffer;
44 template<class BaseType, class CoType> class PoolSlotRef;
45 
46 
48 
63 class OGDF_EXPORT FixCand : public AbacusRoot {
64 
65  friend class Sub;
66  friend class Master;
67 
68 public:
69 
71 
74  FixCand(Master *master) :
75  master_(master),
76  candidates_(nullptr),
77  fsVarStat_(nullptr),
78  lhs_(nullptr)
79  { }
80 
82  ~FixCand() { deleteAll(); }
83 
84 private:
85 
87 
90  void saveCandidates(Sub *sub);
91 
93 
108  void fixByRedCost(CutBuffer<Variable, Constraint> *addVarBuffer);
109 
111 
114  void deleteAll();
115 
117  void allocate(int nCand);
118 
119 
121 
123 
125 
127 
128  FixCand(const FixCand &rhs);
129  const FixCand &operator=(const FixCand &rhs);
130 };
131 
132 }
Base class of all other classes of ABACUS.
Definition: abacusroot.h:68
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
The subproblem.
Definition: sub.h:68
An array that keeps track of the number of inserted elements; also usable as an efficient stack...
Definition: Array.h:45
~FixCand()
The destructor.
Definition: fixcand.h:82
Cut buffers.
Definition: convar.h:45
ArrayBuffer< FSVarStat * > * fsVarStat_
The fixing status of the candidates.
Definition: fixcand.h:124
FixCand(Master *master)
Creates an empty set of candidates for fixing.
Definition: fixcand.h:74
ArrayBuffer< double > * lhs_
The left hand side of the expression evaluated for fixing.
Definition: fixcand.h:126
Candidates for fixing.
Definition: fixcand.h:63
ArrayBuffer< PoolSlotRef< Variable, Constraint > * > * candidates_
The candidates for fixing.
Definition: fixcand.h:122
Master * master_
A pointer to the corresponding master of the optimization.
Definition: fixcand.h:120