Scippy

SCIP

Solving Constraint Integer Programs

stptest.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-2022 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 visit scip.zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file stptest.h
17  * @brief includes various testing methods for Steiner tree problems
18  * @author Daniel Rehfeldt
19  *
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 
25 #ifndef APPLICATIONS_STP_SRC_STPTEST_H_
26 #define APPLICATIONS_STP_SRC_STPTEST_H_
27 
28 #include <stdlib.h>
29 #include "graph.h"
30 #include "reduce.h"
31 #include "scip/scip.h"
32 
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 
39 #define STPTEST_ASSERT_MSG_ARGS(cond, msg, ...) \
40  do \
41  { \
42  if( !(cond) ) \
43  { \
44  printf("[%s:%d] unit test failed: ", __FILE__, __LINE__); \
45  printf((msg), __VA_ARGS__); \
46  abort(); \
47  } \
48  } while(0)
49 
50 
51 #define STPTEST_ASSERT_MSG(cond, msg) \
52  do \
53  { \
54  if( !(cond) ) \
55  { \
56  printf("[%s:%d] unit test failed: ", __FILE__, __LINE__); \
57  printf((msg)); \
58  abort(); \
59  } \
60  } while(0)
61 
62 
63 #define STPTEST_ASSERT(cond) \
64  do \
65  { \
66  if( !(cond) ) \
67  { \
68  printf("[%s:%d] unit test failed: ", __FILE__, __LINE__); \
69  printf("\n"); \
70  abort(); \
71  } \
72  } while(0)
73 
74 
75 /* stptest_base.c
76  */
78 
79 
80 
81 /* stptest_graph.c
82  */
84 extern void stptest_graphTearDown(SCIP*, GRAPH*);
86 extern SCIP_RETCODE stptest_graphSetUpPcOrg(SCIP*, GRAPH*, int*, int*);
87 extern SCIP_RETCODE stptest_graphSetUpRpcOrg(SCIP*, GRAPH*, int*, int*);
90 extern SCIP_RETCODE stptest_graphSetUpRmwOrg(SCIP*, GRAPH*, int*, int*);
92 
93 /* stptest_graphpath.c
94  */
96 
97 
98 /* stptest_extreduce.c
99  */
101 extern void stptest_extreduceTearDown(SCIP*, GRAPH*, REDCOST**);
102 
103 /* stptest_extutils.c
104  */
106 
107 /* stptest_reduce.c
108  */
112 
113 /* stptest_reducesd.c
114  */
122 
123 
124 /* stptest_pcreduce.c
125  */
127 
128 
129 /* stptest_reducesepa.c
130  */
132 
133 
134 /* stptest_da.c
135  */
137 
138 
139 
140 /* stptest_misc.c
141  */
146 
147 /* stptest_heurlocal.c
148  */
150 
151 
152 /* stptest_heurtm.c
153  */
156 
157 
158 
159 #ifdef __cplusplus
160 }
161 #endif
162 
163 
164 #endif /* APPLICATIONS_STP_SRC_STPTEST_H_ */
SCIP_RETCODE stptest_pseudoDel(SCIP *)
Definition: stptest_misc.c:775
SCIP_RETCODE stptest_completegraph(SCIP *)
Definition: stptest_misc.c:893
SCIP_RETCODE stptest_reduceSdStarBias(SCIP *)
SCIP_RETCODE stptest_reduceSdBiased(SCIP *)
SCIP_RETCODE stptest_dheap(SCIP *)
Definition: stptest_misc.c:791
SCIP_RETCODE stptest_dcmst(SCIP *)
SCIP_RETCODE stptest_graphSetUpRmwExtended(SCIP *, GRAPH *, int *, int *)
SCIP_RETCODE stptest_pcreduce(SCIP *)
SCIP_RETCODE stptest_reduceBdk(SCIP *)
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
includes various files containing graph methods used for Steiner tree problems
SCIP_RETCODE stptest_graphSetUpRmwOrg(SCIP *, GRAPH *, int *, int *)
SCIP_RETCODE stptest_graphSetUpPcOrg(SCIP *, GRAPH *, int *, int *)
void stptest_extreduceTearDown(SCIP *, GRAPH *, REDCOST **)
SCIP_RETCODE stptest_graphSetUpRpcOrg(SCIP *, GRAPH *, int *, int *)
SCIP_RETCODE stptest_reduceSdBiasedBottleneck(SCIP *)
SCIP_RETCODE stptest_testSolPrune(SCIP *)
SCIP_RETCODE stptest_pseudoAncestors(SCIP *)
Definition: stptest_misc.c:757
SCIP_RETCODE stptest_reduceSdCliqueStar(SCIP *)
SCIP_RETCODE stptest_testHeurTm(SCIP *)
SCIP_RETCODE stptest_extreduce(SCIP *)
SCIP_RETCODE stptest_reduceNsvImplied(SCIP *)
void stptest_graphTearDown(SCIP *, GRAPH *)
SCIP_RETCODE stptest_graphSetUpRpcExtended(SCIP *, GRAPH *, int *, int *)
SCIP_RETCODE stptest_testHeurLocal(SCIP *)
SCIP_RETCODE stptest_graphSetUp(SCIP *, GRAPH *)
SCIP_RETCODE stptest_extmldists(SCIP *)
SCIP_RETCODE stptest_csrdepo(SCIP *)
SCIP_RETCODE stptest_reduceBLCtree(SCIP *)
SCIP_RETCODE stptest_reduceStar(SCIP *)
SCIP_RETCODE stptest_reduceSdGetter(SCIP *)
SCIP_RETCODE stptest_reduceBiconnected(SCIP *)
SCIP_RETCODE stptest_tpaths(SCIP *)
SCIP_RETCODE stptest_graphSetUpPcExtended(SCIP *, GRAPH *, int *, int *)
includes various reduction methods for Steiner tree problems
SCIP_RETCODE stptest_testAll(SCIP *)
Definition: stptest_base.c:34
SCIP callable library.
SCIP_RETCODE stptest_dapaths(SCIP *)
Definition: stptest_da.c:90