Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

lpsolution.h
Go to the documentation of this file.
1 
30 #pragma once
31 
33 
34 #pragma GCC visibility push(default)
35 namespace abacus {
36 
37 
38 class Master;
39 class Sub;
40 template<class BaseType, class CoType> class Active;
41 template<class CoType,class BaseType> class Separator;
42 
43 template <class BaseType, class CoType>
44 class LpSolution;
45 
46 template <class BaseType, class CoType>
47 std::ostream &operator<< (std::ostream &out, const LpSolution<BaseType, CoType> &rhs);
48 
49 
51 
64 template <class BaseType, class CoType>
65 class LpSolution : public AbacusRoot {
66 
67  friend class Separator< CoType, BaseType>;
68 
69 public:
70 
72 
81  LpSolution(Sub *sub, bool primalVariables, Active<BaseType, CoType> *active);
82 
84 
87  LpSolution(Master *master);
88 
90 
94 
96  ~LpSolution();
97 
99 
105  friend std::ostream &operator<< <> (std::ostream &out, const LpSolution<BaseType, CoType> &rhs);
106 
108  int nVarCon() const;
109 
111  double *zVal();
112 
114  const double *zVal() const;
115 
118 
120  int idSub() const;
121 
123  int idLp() const;
124 
125 
126 protected:
128 
129  int nVarCon_;
130  int idSub_;
131  int idLp_;
132 
135 
136 private:
139 };
140 
141 
142 }
143 
145 #pragma GCC visibility pop
abacus::LpSolution
LP solutions.
Definition: lpsolution.h:44
abacus::Active
Implements the sets of active constraints and variables which are associated with each subproblem.
Definition: active.h:44
abacus::LpSolution::LpSolution
LpSolution(Sub *sub, bool primalVariables, Active< BaseType, CoType > *active)
The constructor.
abacus::LpSolution::~LpSolution
~LpSolution()
The destructor.
abacus::LpSolution::active_
Active< BaseType, CoType > * active_
The active variables/constraints.
Definition: lpsolution.h:134
abacus::LpSolution::operator=
const LpSolution< BaseType, CoType > & operator=(const LpSolution< BaseType, CoType > &rhs)
abacus::LpSolution::idLp
int idLp() const
Returns the Id of the LP in which the LP solution was generated.
abacus::LpSolution::active
Active< BaseType, CoType > * active()
Returns the active variables/constraints.
abacus::operator<<
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
abacusroot.h
abacus::LpSolution::nVarCon_
int nVarCon_
The number of variables/constraints.
Definition: lpsolution.h:129
abacus
Definition: ILPClusterPlanarity.h:50
abacus::LpSolution::zVal
double * zVal()
Returns the primal/dual variables of the LP solution.
abacus::LpSolution::idLp_
int idLp_
The Id of the LP in which the LP solution was generated.
Definition: lpsolution.h:131
abacus::LpSolution::master_
Master * master_
A pointer to the corresponding master of the optimization.
Definition: lpsolution.h:127
abacus::AbacusRoot
Base class of all other classes of ABACUS.
Definition: abacusroot.h:69
abacus::LpSolution::idSub
int idSub() const
Returns the Id of the subproblem in which the LP solution was generated.
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:219
ogdf::AlgorithmFailureCode::Active
@ Active
lpsolution.inc
abacus::LpSolution::zVal_
Array< double > zVal_
The primal/dual variables of the LP solution.
Definition: lpsolution.h:133
abacus::Separator
Separators.
Definition: lpsolution.h:41
abacus::Sub
The subproblem.
Definition: sub.h:69
abacus::LpSolution::nVarCon
int nVarCon() const
Returns the number of variables (if BaseType is Variable) or the number of constraints (if BaseType i...
abacus::LpSolution::idSub_
int idSub_
The Id of the subproblem in which the LP solution was generated.
Definition: lpsolution.h:130
abacus::Master
The master of the optimization.
Definition: master.h:70