stptest_misc.c
Go to the documentation of this file.
26 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
333 SCIP_CALL( SCIPallocCleanBufferArray(scip, &hasharr, graph_pseudoAncestorsGetHashArraySize(graph->pseudoancestors)) );
380 SCIP_CALL( SCIPallocCleanBufferArray(scip, &hasharr, graph_pseudoAncestorsGetHashArraySize(graph->pseudoancestors)) );
698 SCIP_Real adjedges1[] = { FARAWAY, FARAWAY, FARAWAY, FARAWAY, FARAWAY, CGRAPH_EDGECOST_UNDEFINED_VALUE };
699 SCIP_Real adjedges2[] = { 2.0, FARAWAY, FARAWAY, FARAWAY, FARAWAY, CGRAPH_EDGECOST_UNDEFINED_VALUE };
700 SCIP_Real adjedges3[] = { 4.0, 3.0, FARAWAY, FARAWAY, FARAWAY, CGRAPH_EDGECOST_UNDEFINED_VALUE };
742 if( cmst->predecessors[0] != 4 || cmst->predecessors[1] != 4 || cmst->predecessors[4] != 2 || cmst->predecessors[2] != 3 )
void graph_edge_delPseudoAncestors(SCIP *, int, GRAPH *)
Definition: graph_history.c:1128
Definition: completegraph.h:43
int graph_edge_nPseudoAncestors(const GRAPH *, int)
Definition: graph_history.c:1159
SCIP_RETCODE cmst_init(SCIP *scip, CMST **cmst, int maxnnodes)
Definition: completegraph.c:660
void graph_pseudoAncestors_unhashEdge(const PSEUDOANS *, int, int *)
Definition: graph_history.c:854
Definition: graphdefs.h:184
Definition: struct_scip.h:59
static SCIP_RETCODE pseudoAncestorsHashPc(SCIP *scip)
Definition: stptest_misc.c:367
int graph_pseudoAncestorsGetHashArraySize(const PSEUDOANS *)
Definition: graph_history.c:1321
Definition: graphdefs.h:301
static SCIP_RETCODE pseudoAncestorsMergePc(SCIP *scip)
Definition: stptest_misc.c:282
includes complete graph methods, in particular for MST calculation
void cgraph_node_append(CGRAPH *cgraph, int nodeid)
Definition: completegraph.c:416
void graph_pseudoAncestors_unhashNode(const PSEUDOANS *, int, int *)
Definition: graph_history.c:870
void graph_pseudoAncestors_hashNodeDirty(const PSEUDOANS *, int, SCIP_Bool, SCIP_Bool *, int *)
Definition: graph_history.c:902
includes various files containing graph methods used for Steiner tree problems
void graph_pseudoAncestors_hashEdge(const PSEUDOANS *, int, int *)
Definition: graph_history.c:824
SCIP_Bool SCIPisEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
Definition: scip_numerics.c:438
SCIP_RETCODE graph_pseudoAncestors_appendMoveNode(SCIP *, int, int, SCIP_Bool, GRAPH *, SCIP_Bool *)
Definition: graph_history.c:1506
SCIP_RETCODE graph_pc_initPrizes(SCIP *, GRAPH *, int)
Definition: graph_pcbase.c:741
#define SCIPallocCleanBufferArray(scip, ptr, num)
Definition: scip_mem.h:133
static SCIP_RETCODE pseudoAncestorsMerge(SCIP *scip)
Definition: stptest_misc.c:241
#define CGRAPH_EDGECOST_UNDEFINED_VALUE
Definition: completegraph.h:39
void graph_edge_add(SCIP *, GRAPH *, int, int, double, double)
SCIP_RETCODE graph_pseudoAncestors_addToEdge(SCIP *, int, int, GRAPH *)
Definition: graph_history.c:1523
SCIP_RETCODE graph_knot_delPseudo(SCIP *, GRAPH *, const SCIP_Real *, const SCIP_Real *, const SCIP_Real *, int, REDCOST *, SCIP_Bool *)
Definition: graph_delpseudo.c:1015
Definition: type_retcode.h:33
SCIP_RETCODE stptest_pseudoAncestors(SCIP *scip)
Definition: stptest_misc.c:757
Improvement heuristic for Steiner problems.
Definition: type_retcode.h:34
void graph_heap_free(SCIP *, SCIP_Bool, SCIP_Bool, DHEAP **)
Definition: graph_util.c:1034
int graph_knot_nPseudoAncestors(const GRAPH *, int)
Definition: graph_history.c:1174
SCIP_RETCODE cgraph_init(SCIP *scip, CGRAPH **cgraph, int maxnnodes)
Definition: completegraph.c:266
static SCIP_RETCODE pseudoAncestorsHash(SCIP *scip)
Definition: stptest_misc.c:319
const int * graph_edge_getPseudoAncestors(const GRAPH *, int)
Definition: graph_history.c:1187
void graph_heap_deleteMinGetNode(int *, DHEAP *)
Definition: graph_util.c:1065
void graph_pseudoAncestors_hashNode(const PSEUDOANS *, int, int *)
Definition: graph_history.c:840
static SCIP_RETCODE graphBuildV5E5(SCIP *scip, GRAPH **g, SCIP_Bool pc)
Definition: stptest_misc.c:38
void cgraph_node_repositionTop(CGRAPH *cgraph, int nodeid_new)
Definition: completegraph.c:463
includes various testing methods for Steiner tree problems
SCIP_RETCODE graph_heap_create(SCIP *, int, int *, DENTRY *, DHEAP **)
Definition: graph_util.c:992
void graph_pseudoAncestors_hashEdgeDirty(const PSEUDOANS *, int, SCIP_Bool, SCIP_Bool *, int *)
Definition: graph_history.c:884
static SCIP_RETCODE pseudoAncestorsCreation(SCIP *scip)
Definition: stptest_misc.c:190
shortest paths based primal heuristics for Steiner problems
SCIP_RETCODE graph_pseudoAncestors_addToNode(SCIP *, int, int, GRAPH *)
Definition: graph_history.c:1545
Definition: completegraph.h:69
void cgraph_node_applyMinAdjCosts(CGRAPH *cgraph, int nodepos, int nodeid)
Definition: completegraph.c:371
Definition: objbenders.h:33
SCIP_RETCODE graph_pseudoAncestors_appendMoveEdge(SCIP *, int, int, SCIP_Bool, GRAPH *, SCIP_Bool *)
Definition: graph_history.c:1489
void cmst_computeMst(const CGRAPH *cgraph, int mstroot, CMST *cmst)
Definition: completegraph.c:711