Scippy

SCIP

Solving Constraint Integer Programs

pub_cutsel.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 scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file pub_cutsel.h
17  * @ingroup PUBLICCOREAPI
18  * @brief public methods for cut selectors
19  * @author Mark Turner
20  * @author Felipe Serrano
21  */
22 
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
24 
25 #ifndef __SCIP_PUB_CUTSEL_H__
26 #define __SCIP_PUB_CUTSEL_H__
27 
28 
29 #include "scip/def.h"
30 #include "scip/type_misc.h"
31 #include "scip/type_cutsel.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 /**@addtogroup PublicCutSelectorMethods
38  *
39  * @{
40  */
41 
42 /** gets name of cut selector */
43 SCIP_EXPORT
44 const char* SCIPcutselGetName(
45  SCIP_CUTSEL* cutsel /**< cut selector */
46  );
47 
48 /** gets user data of cut selector */
49 SCIP_EXPORT
51  SCIP_CUTSEL* cutsel /**< cut selector */
52  );
53 
54 /** gets description of cut selector */
55 SCIP_EXPORT
56 const char* SCIPcutselGetDesc(
57  SCIP_CUTSEL* cutsel /**< cut selector */
58  );
59 
60 /** gets priority of cut selector */
61 SCIP_EXPORT
63  SCIP_CUTSEL* cutsel /**< cut selector */
64  );
65 
66 /** sets user data of cut selector; user has to free old data in advance! */
67 SCIP_EXPORT
69  SCIP_CUTSEL* cutsel, /**< cut selector */
70  SCIP_CUTSELDATA* cutseldata /**< new cut selector user data */
71  );
72 
73 /** is cut selector initialized? */
74 SCIP_EXPORT
76  SCIP_CUTSEL* cutsel /**< cut selector */
77  );
78 
79 /** gets time in seconds used in this cut selector for setting up for next stages */
80 SCIP_EXPORT
82  SCIP_CUTSEL* cutsel /**< cut selector */
83  );
84 
85 /** gets time in seconds used in this cut selector */
86 SCIP_EXPORT
88  SCIP_CUTSEL* cutsel /**< cut selector */
89  );
90 
91 /** get number of times the cutselector was called */
93  SCIP_CUTSEL* cutsel /**< cut selector */
94  );
95 
96 /** get number of times the cutselector was called at the root */
98  SCIP_CUTSEL* cutsel /**< cut selector */
99  );
100 
101 /** get total number of cuts that were selected at the root */
103  SCIP_CUTSEL* cutsel /**< cut selector */
104  );
105 
106 /** get total number of forced cuts that were selected at the root */
108  SCIP_CUTSEL* cutsel /**< cut selector */
109  );
110 
111 /** get total number of root cuts that were filtered */
113  SCIP_CUTSEL* cutsel /**< cut selector */
114  );
115 
116 /** get total number of local cuts that were selected */
118  SCIP_CUTSEL* cutsel /**< cut selector */
119  );
120 
121 /** get total number of forced local cuts that were selected */
123  SCIP_CUTSEL* cutsel /**< cut selector */
124  );
125 
126 /** get total number of local cuts that were filtered */
128  SCIP_CUTSEL* cutsel /**< cut selector */
129  );
130 
131 /** compares two cut selectors w. r. to their priority */
132 SCIP_EXPORT
133 SCIP_DECL_SORTPTRCOMP(SCIPcutselComp);
134 
135 /** @} */
136 
137 #ifdef __cplusplus
138 }
139 #endif
140 
141 #endif
const char * SCIPcutselGetName(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:150
type definitions for miscellaneous datastructures
SCIP_CUTSELDATA * SCIPcutselGetData(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:409
struct SCIP_CutselData SCIP_CUTSELDATA
Definition: type_cutsel.h:44
SCIP_Longint SCIPcutselGetNCalls(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:565
SCIP_Longint SCIPcutselGetNRootForcedCuts(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:595
type definitions for cut selectors
SCIP_Longint SCIPcutselGetNRootCutsFiltered(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:605
void SCIPcutselSetData(SCIP_CUTSEL *cutsel, SCIP_CUTSELDATA *cutseldata)
Definition: cutsel.c:419
SCIP_DECL_SORTPTRCOMP(SCIPcutselComp)
Definition: cutsel.c:645
SCIP_Longint SCIPcutselGetNRootCalls(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:575
SCIP_Real SCIPcutselGetSetupTime(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:545
SCIP_Longint SCIPcutselGetNLocalCutsFiltered(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:635
SCIP_Longint SCIPcutselGetNRootCuts(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:585
SCIP_Bool SCIPcutselIsInitialized(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:535
#define SCIP_Bool
Definition: def.h:84
const char * SCIPcutselGetDesc(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:235
SCIP_Longint SCIPcutselGetNLocalCuts(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:615
int SCIPcutselGetPriority(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:430
#define SCIP_Real
Definition: def.h:177
#define SCIP_Longint
Definition: def.h:162
SCIP_Real SCIPcutselGetTime(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:555
common defines and data types used in all packages of SCIP
SCIP_Longint SCIPcutselGetNLocalForcedCuts(SCIP_CUTSEL *cutsel)
Definition: cutsel.c:625