solhistory.c
Go to the documentation of this file.
17 * @brief includes methods working on the (reduction) history of solutions to Steiner tree problems
20 * This file includes methods working on the (reduction) history of solutions to Steiner tree problems
26 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
49 STP_Bool* RESTRICT orgnodes, /**< array to mark whether a node is part of the original solution */
50 STP_Bool* RESTRICT orgedges, /**< array to mark whether an edge is part of the original solution */
144 updateorgsol(graph, graph_edge_getAncestors(graph, e), orgnodes, orgedges, &nsolnodes, &nsoledges);
327 if( e < graph->edges && (graph->stp_type == STP_MWCSP || graph->stp_type == STP_RMWCSP || graph->stp_type == STP_BRMWCSP) )
367 SCIP_CALL( solstp_markPcancestors(scip, graph->pcancestors, graph->orgtail, graph->orghead, norgnodes,
Definition: misc_stp.h:88
Definition: graphdefs.h:184
Definition: struct_scip.h:59
Shortest path based algorithms for Steiner problems.
Definition: struct_var.h:198
SCIP_RETCODE solstp_markPcancestors(SCIP *scip, IDX **pcancestors, const int *tails, const int *heads, int orgnnodes, STP_Bool *solnodemark, STP_Bool *soledgemark, int *solnodequeue, int *nsolnodes, int *nsoledges)
Definition: solstp.c:2200
includes methods for Steiner tree problem solutions
Problem data for stp problem.
minimum spanning tree based algorithms for Steiner problems
static void cleanHistory(const GRAPH *g, SOLHISTORY *solhistory)
Definition: solhistory.c:91
Definition: struct_sol.h:64
static void updateorgsol(const GRAPH *graph, IDX *curr, STP_Bool *RESTRICT orgnodes, STP_Bool *RESTRICT orgedges, int *nsolnodes, int *nsoledges)
Definition: solhistory.c:46
SCIP_RETCODE solhistory_init(SCIP *scip, const GRAPH *graph, SOLHISTORY **solhistory)
Definition: solhistory.c:389
includes methods working on the (reduction) history of solutions to Steiner tree problems ...
static SCIP_RETCODE computeHistory(SCIP *scip, SCIP_SOL *scipsol, const GRAPH *graph, SOLHISTORY *solhistory)
Definition: solhistory.c:114
Definition: struct_misc.h:51
void graph_edge_add(SCIP *, GRAPH *, int, int, double, double)
Definition: type_retcode.h:33
static SCIP_RETCODE computeHistoryPcMw(SCIP *scip, SCIP_SOL *scipsol, const GRAPH *graph, SOLHISTORY *solhistory)
Definition: solhistory.c:281
SCIP_RETCODE solhistory_computeHistory(SCIP *scip, SCIP_SOL *scipsol, const GRAPH *g, SOLHISTORY *solhistory)
Definition: solhistory.c:437
Portable definitions.
SCIP_RETCODE SCIPqueueCreate(SCIP_QUEUE **queue, int initsize, SCIP_Real sizefac)
Definition: misc.c:934
Definition: solhistory.h:40
Definition: objbenders.h:33
SCIP_Real SCIPgetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var)
Definition: scip_sol.c:1352
void solhistory_free(SCIP *scip, SOLHISTORY **solhistory)
Definition: solhistory.c:419
IDX * graph_edge_getAncestors(const GRAPH *, int)
Definition: graph_history.c:1202