Scippy

SCIP

Solving Constraint Integer Programs

heur_local.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2015 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file heur_local.h
17  * @brief Improvement heuristic for Steiner problems
18  * @author Daniel Rehfeldt
19  *
20  * This file implements three local heuristics, namely vertex insertion, key-path exchange and key-vertex elimination,
21  * see "Fast Local Search for Steiner Trees in Graphs" by Uchoa and Werneck.
22  *
23  */
24 
25 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
26 
27 #ifndef __SCIP_HEUR_LOCAL_H__
28 #define __SCIP_HEUR_LOCAL_H__
29 
30 
31 #include "scip/scip.h"
32 #include "grph.h"
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 /** creates the local primal heuristic and includes it in SCIP */
38 extern
39 SCIP_RETCODE SCIPincludeHeurLocal(
40  SCIP* scip /**< SCIP data structure */
41  );
42 
43 /** perform local heuristics on a given Steiner tree */
44 extern
45 SCIP_RETCODE SCIPheurImproveSteinerTree(
46  SCIP* scip, /**< SCIP data structure */
47  GRAPH* graph, /**< graph data structure */
48  SCIP_Real* cost, /**< arc cost array */
49  SCIP_Real* costrev, /**< reversed arc cost array */
50  int* best_result /**< array indicating whether an arc is part of the solution (CONNECTED/UNKNOWN) */
51  );
52 
53 /** local heuristic for (R)PC and MW */
54 extern
55 SCIP_RETCODE extendSteinerTreePcMw(
56  SCIP* scip, /**< SCIP data structure */
57  const GRAPH* graph, /**< graph data structure */
58  PATH* vnoi, /**< Voronoi data structure array */
59  SCIP_Real* costrev, /**< reversed edge costs */
60  int* vbase, /**< array to store Voronoi bases to each vertex */
61  int* stedge, /**< array to indicate whether an edge is part of the Steiner tree */
62  char* stvertex, /**< uninitialized array to indicate whether an edge is part of the Steiner tree */
63  int* adds /**< pointer to store number of added vertices */
64 );
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif
Definition: grph.h:55
SCIP_RETCODE SCIPincludeHeurLocal(SCIP *scip)
Definition: heur_local.c:2421
SCIP_RETCODE SCIPheurImproveSteinerTree(SCIP *scip, GRAPH *graph, SCIP_Real *cost, SCIP_Real *costrev, int *best_result)
Definition: heur_local.c:282
includes various files containing graph methods used for Steiner problems
SCIP_RETCODE extendSteinerTreePcMw(SCIP *scip, const GRAPH *graph, PATH *vnoi, SCIP_Real *costrev, int *vbase, int *stedge, char *stvertex, int *adds)
Definition: heur_local.c:1941