45 namespace cluster_planarity {
76 Logger::slout() <<
"OPTIMIZE END\tNode=" << this->
id() <<
" db=" <<
dualBound() <<
"\tReturn=" << (ret?
"(error)":
"(ok)") <<
"\n";
91 while (v != parent[v])
106 return pricingRealO(0.001);
117 int pricingReal(
double minViolate);
121 Logger::slout() <<
"\tSeparate (minViolate=" << minViolate <<
")..";
127 inline int pricingRealO(
double minViolate) {
128 Logger::slout() <<
"\tPricing (minViolate=" << minViolate <<
")..";
129 int r = pricingReal(minViolate);
146 virtual int solveLp()
override;
155 virtual int improve(
double &primalValue)
override;
191 for(
int i = num; i-- > 0;)
Declaration of the CPlanarityMaster class for the Branch&Cut algorithm for c-planarity testing via an...
virtual int addVars(ArrayBuffer< Variable *> &variables, Pool< Variable, Constraint > *pool=nullptr, ArrayBuffer< bool > *keepInPool=nullptr, ArrayBuffer< double > *rank=nullptr)
Tries to add new variables to the variable buffer and a pool.
int separateRealO(double minViolate)
The master of the optimization.
int separateConnPool(double minViolation)
int clusterBags(ClusterGraph &CG, cluster c)
int separateKuraPool(double minViolation)
Declaration and implementation of ArrayBuffer class.
virtual abacus::Sub * generateSon(abacus::BranchRule *rule) override
Returns a pointer to an object of a problem specific subproblem, which is generated from the current ...
virtual int optimize()
Performs the optimization of the subproblem.
void intSolutionInducedGraph(GraphCopy &support)
void push(E e)
Puts a new element in the buffer.
Encapsulates a pointer to an ogdf::SList element.
double dualBound() const
Returns a bound which is "better" than the optimal solution of the subproblem w.r.t. the sense of the optimization.
void connectivitySupportGraph(GraphCopy &support, EdgeArray< double > &weight)
virtual bool removeNonLiftableCons()
CPlanaritySub(abacus::Master *master)
virtual int selectBranchingVariable(int &variable) override
Chooses a branching variable.
virtual int improve(double &primalValue) override
Can be redefined in order to implement primal heuristics for finding feasible solutions.
int getArrayIndex(double lpValue)
Representation of clustered graphs.
virtual int optimize() override
Performs the optimization of the subproblem.
int id() const
Returns the identity number of the subproblem.
Dynamic arrays indexed with nodes.
bool checkCConnectivityOld(const GraphCopy &support)
void myAddVars(ArrayBuffer< abacus::Variable *> &b)
virtual int addCons(ArrayBuffer< Constraint *> &constraints, Pool< Constraint, Variable > *pool=nullptr, ArrayBuffer< bool > *keepInPool=nullptr, ArrayBuffer< double > *rank=nullptr)
Tries to add new constraints to the constraint buffer and a pool.
void clusterSpanningTree(ClusterGraph &C, cluster c, ClusterArray< List< NodePair > > &treeEdges, ClusterArray< List< edgeValue > > &clusterEdges)
virtual int selectBranchingVariableCandidates(ArrayBuffer< int > &candidates) override
Selects candidates for branching variables.
int addCutCons(ArrayBuffer< abacus::Constraint *> cons)
Adds the given constraints to the connectivity cut pool.
Dynamic arrays indexed with clusters.
Copies of graphs supporting edge splitting.
Abstract base class for all branching rules.
List< abacus::Constraint *> criticalSinceBranching
Class for the representation of nodes.
virtual int separate() override
Must be redefined in derived classes for the generation of cutting planes.
double heuristicImprovePrimalBound(List< NodePair > &connectionEdges)
bool detectedInfeasibility
INDEX size() const
Returns number of elements in the buffer.
virtual bool feasible() override
Must check the feasibility of a solution of the LP-relaxation.
static std::ostream & slout(Level l=Level::Default)
stream for logging-output (global)
int separateCutPool(abacus::StandardPool< abacus::Constraint, abacus::Variable > *pool, double minViolation)
BranchRule * branchRule() const
Returns a pointer to the branching rule of the subproblem.
int addKuraCons(ArrayBuffer< abacus::Constraint *> cons)
Adds the given constraints to the planarity cut pool.
Representation of clusters in a clustered graph.
Declaration of the wrapper class of the Boyer-Myrvold planarity test.
int createVariablesForBufferedConstraints()
int separateReal(double minViolate)
these functions are mainly reporting to let abacus think everthing is normal.
node getRepresentative(node v, NodeArray< node > &parent)
run through the pointer list parent and return the representative i.e. the node with parent[v] == v ...
int addPoolCons(ArrayBuffer< abacus::Constraint *> &cons, abacus::StandardPool< abacus::Constraint, abacus::Variable > *pool)
Adds the given constraints to the given pool.
virtual int constraintPoolSeparation(int ranking=0, Pool< Constraint, Variable > *pool=nullptr, double minViolation=0.001)
Tries to generate inactive constraints from a pool.
Master * master_
A pointer to the corresponding master of the optimization.
The namespace for all OGDF objects.
virtual int makeFeasible() override
The default implementation of makeFeasible()does nothing.
Variable * variable(int i) const
Returns a pointer to the i-th active variable.
CPlanarityMaster * master()
KuraSize subdivisionLefthandSide(SListConstIterator< KuratowskiWrapper > it, GraphCopy *gc, SListPure< NodePair > &subDivOrig)
const Sub * father() const
Returns a pointer to the father of the subproblem in the branch-and-bound tree.
virtual int solveLp() override
Solves the LP-relaxation of the subproblem.
void kuratowskiSupportGraph(GraphCopy &support, double low, double high)
void childClusterSpanningTree(GraphCopy &GC, List< edgeValue > &clusterEdges, List< NodePair > &MSTEdges)
bool checkCConnectivity(const GraphCopy &support)
Checks if the cluster induced graphs and their complement are connected in the current solution...
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
ArrayBuffer< abacus::Constraint *> bufferedForCreation
virtual int pricing() override
Should generate inactive variables which do not price out correctly.