46 namespace cluster_planarity {
74 double heuristicOEdgeBound=0.3,
75 int heuristicNPermLists=5,
76 int kuratowskiIterations=3,
79 double kuratowskiHigh=0.7,
80 double kuratowskiLow=0.3,
82 double branchingGap=0.4,
83 const char *time=
"00:20:00",
84 bool dopricing =
true,
85 bool checkCPlanar =
false,
86 int numAddVariables = 15,
87 double strongConstraintViolation = 0.3,
88 double strongVariableViolation = 0.3);
183 bool m_solByHeuristic;
186 void printGraph(
const Graph &G);
193 return "StdConstraints.txt";
269 if(m_activeRepairs) {
270 m_repairStat.
push(m_activeRepairs);
280 return ((
double) tempo)/ 100.0;
void setHeuristicPermutationLists(int n)
int numberOfHeuristicPermutationLists() const
void setKIterations(int n)
double heuristicInitialUpperBound()
int addedKConstraints() const
abacus::StandardPool< abacus::Constraint, abacus::Variable > * getCutConnPool()
Returns cut pool for connectivity.
void updateBestSubGraph(List< NodePair > &original, List< NodePair > &connection, List< edge > &deleted)
bool m_useDefaultCutPool
Defines if the ABACUS default cut pool or the separate Connectivity and Kuratowski constraint pools a...
The master of the optimization.
void getDeletedEdges(List< edge > &edges) const
int getNumAddVariables() const
double m_kuratowskiBoundLow
Data type for general directed graphs (adjacency list representation).
const Graph * getGraph() const
Declaration and implementation of ArrayBuffer class.
int getNSubdivisions() const
const int m_fastHeuristicRuns
double getStrongConstraintViolation() const
virtual ~MaxCPlanarMaster()
Destruction.
abacus::StandardPool< abacus::Constraint, abacus::Variable > * m_cutKuraPool
Kuratowski Cuts.
double m_largestConnectionCoeff
int64_t minutes() const
Returns the currently elapsed time in minutes.
void setKBoundHigh(double n)
void updateAddedCCons(int n)
void push(E e)
Puts a new element in the buffer.
int m_nKuratowskiSupportGraphs
List< NodePair > m_allOneEdges
double getHeuristicFractionalBound() const
int m_nHeuristicPermutationLists
abacus::StandardPool< abacus::Constraint, abacus::Variable > * m_cutConnPool
Cut pools for connectivity and Kuratowski constraints.
void setStrongVariableViolation(double d)
void setStrongConstraintViolation(double d)
virtual void terminateOptimization() override
The default implementation of terminateOptimization() does nothing.
abacus::StandardPool< abacus::Constraint, abacus::Variable > * getCutKuraPool()
Returns cut pool for planarity.
int64_t centiSeconds() const
Returns the currently elapsed time in 1/100-seconds.
bool perturbation() const
void getConnectionOptimalSolutionEdges(List< NodePair > &egdes) const
void clusterConnection(cluster c, GraphCopy &GC, double &upperBound)
double getStrongVariableViolation() const
Declaration of the variable class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph prob...
double getKBoundLow() const
Forms the virtual base class for all possible constraints given in pool format.
Representation of clustered graphs.
void clearActiveRepairs()
void setMPHeuristic(bool b)
Switches use of lower bound heuristic.
Dynamic arrays indexed with nodes.
bool getMPHeuristic() const
void generateVariablesForFeasibility(const List< ChunkConnection *> &ccons, List< EdgeVar *> &connectVars)
void getOriginalOptimalSolutionEdges(List< NodePair > &edges) const
virtual abacus::Sub * firstSub() override
Should return a pointer to the first subproblem of the optimization, i.e., the root node of the enume...
double branchingOEdgeSelectGap() const
Contains logging functionality.
void setHeuristicRuns(int n)
double getKBoundHigh() const
Doubly linked lists (maintaining the length of the list).
void setPertubation(bool b)
const char * getStdConstraintsFileName()
The name of the file that contains the standard, i.e., non-cut, constraints (may be deleted by ABACUS...
int m_nKuratowskiIterations
Declaration of graph copy classes.
void updateAddedKCons(int n)
List< NodePair > m_connectionOneEdges
EdgeVar * createVariable(ListIterator< NodePair > &it)
Copies of graphs supporting edge splitting.
void setNumAddVariables(int i)
List< edge > m_deletedOriginalEdges
Class for the representation of nodes.
ArrayBuffer< int > m_repairStat
Encapsulates a pointer to a list element.
void getAllOptimalSolutionEdges(List< NodePair > &edges) const
double nextConnectCoeff()
double m_kuratowskiBoundHigh
bool m_porta
If set to true, PORTA output is written in a file.
static std::ostream & slout(Level l=Level::Default)
stream for logging-output (global)
double upperBound() const
Returns the value of the global upper bound.
void nodeDistances(node u, NodeArray< NodeArray< int > > &dist)
Graph * solutionInducedGraph()
Representation of clusters in a clustered graph.
int getHeuristicLevel() const
void setNSubdivisions(int n)
List< NodePair > m_originalOneEdges
bool m_checkCPlanar
Defines if only clustered planarity is checked, i.e., all edges of the original graph need to be fixe...
double m_strongVariableViolation
int64_t seconds() const
Returns the currently elapsed time in seconds.
virtual void initializeOptimization() override
The default implementation of initializeOptimization() does nothing.
int addedCConstraints() const
bool getCheckCPlanar() const
int64_t hours() const
Returns the currently elapsed time in hours.
const ClusterGraph * getClusterGraph() const
int getKIterations() const
bool m_mpHeuristic
Indicates if simple max planar subgraph heuristic.
The namespace for all OGDF objects.
void setKBoundLow(double n)
GraphCopy * m_solutionGraph
List< NodePair > m_inactiveVariables
bool goodVar(node a, node b)
void heuristicLevel(int level)
double m_strongConstraintViolation
double heuristicInitialLowerBound()
MaxCPlanarMaster(const ClusterGraph &C, const EdgeArray< int > *pCost, int heuristicLevel=1, int heuristicRuns=2, double heuristicOEdgeBound=0.3, int heuristicNPermLists=5, int kuratowskiIterations=3, int subdivisions=10, int kSupportGraphs=3, double kuratowskiHigh=0.7, double kuratowskiLow=0.3, bool perturbation=false, double branchingGap=0.4, const char *time="00:20:00", bool dopricing=true, bool checkCPlanar=false, int numAddVariables=15, double strongConstraintViolation=0.3, double strongVariableViolation=0.3)
void setNKuratowskiSupportGraphs(int n)
Declaration of the master class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph proble...
int getNKuratowskiSupportGraphs() const
double m_heuristicFractionalBound
virtual void printMe(ostream &out)
bool & useDefaultCutPool()
Returns true if default cut pool is used. Otherwise, separate connectivity and Kuratowski pools are g...
void setPortaFile(bool b)
If set to true, PORTA output is written in a file.
void setHeuristicFractionalBound(double b)
const EdgeArray< int > * m_pCost
double getDoubleTime(const Stopwatch *act)
void getCoefficients(abacus::Constraint *con, const List< EdgeVar *> &orig, const List< EdgeVar * > &connect, List< double > &coeffs)
writes coefficients of all orig and connect variables in constraint con into emptied list coeffs ...
Realizes a stopwatch for measuring elapsed time.
void setNHeuristicRuns(int n)
int getHeuristicRuns() const