Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
basics.h
Go to the documentation of this file.
1
35#pragma once
36
37#include <ogdf/basic/Graph.h>
38
40
41namespace ogdf {
42namespace cluster_planarity {
43
44
54
57public:
61
62 virtual ~BaseConstraint() { }
63
64 virtual int coeff(const NodePair& n) const = 0;
65 virtual double coeff(const abacus::Variable* v) const = 0;
66};
67
68}
69}
Includes declaration of graph class.
Includes Abacus.
const Sub * sub() const
Returns a const pointer to the subproblem associated with the constraint/variable.
Definition convar.h:200
bool local() const
Returns true if the constraint/variable is only locally valid, false otherwise.
Definition convar.h:114
virtual bool dynamic() const
Return true if the constraint/variable is dynamic.
Definition convar.h:125
Forms the virtual base class for all possible constraints given in pool format.
Definition constraint.h:57
bool liftable() const
Checks if the constraint is liftable.
Definition constraint.h:141
CSense * sense()
Returns a pointer to the sense of the constraint.
Definition constraint.h:116
virtual double rhs() const
Returns the right hand side of the constraint.
Definition constraint.h:131
The master of the optimization.
Definition master.h:70
The subproblem.
Definition sub.h:69
Forms the virtual base class for all possible variables given in pool format.
Definition variable.h:60
Class for the representation of edges.
Definition Graph_d.h:364
Class for the representation of nodes.
Definition Graph_d.h:241
virtual double coeff(const abacus::Variable *v) const =0
Returns the coefficient of the variable v in the constraint.
virtual int coeff(const NodePair &n) const =0
BaseConstraint(abacus::Master *master, const abacus::Sub *sub, abacus::CSense::SENSE sense, double rhs, bool dynamic, bool local, bool liftable)
Definition basics.h:58
The namespace for all OGDF objects.
Struct for attaching the current lp-value to the corresponding edge. Used in the primal heuristic.
Definition basics.h:47