Scippy

SCIP

Solving Constraint Integer Programs

pub_relax.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-2019 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 pub_relax.h
17  * @ingroup PUBLICCOREAPI
18  * @brief public methods for relaxation handlers
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_PUB_RELAX_H__
25 #define __SCIP_PUB_RELAX_H__
26 
27 
28 #include "scip/def.h"
29 #include "scip/type_misc.h"
30 #include "scip/type_relax.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 
37 /**@addtogroup PublicRelaxatorMethods
38  *
39  * @{
40  */
41 
42 
43 /** compares two relaxation handlers w. r. to their priority */
44 extern
45 SCIP_DECL_SORTPTRCOMP(SCIPrelaxComp);
46 
47 /** comparison method for sorting relaxators w.r.t. to their name */
48 extern
49 SCIP_DECL_SORTPTRCOMP(SCIPrelaxCompName);
50 
51 /** gets user data of relaxation handler */
52 extern
54  SCIP_RELAX* relax /**< relaxation handler */
55  );
56 
57 /** sets user data of relaxation handler; user has to free old data in advance! */
58 extern
59 void SCIPrelaxSetData(
60  SCIP_RELAX* relax, /**< relaxation handler */
61  SCIP_RELAXDATA* relaxdata /**< new relaxation handler user data */
62  );
63 
64 /** gets name of relaxation handler */
65 extern
66 const char* SCIPrelaxGetName(
67  SCIP_RELAX* relax /**< relaxation handler */
68  );
69 
70 /** gets description of relaxation handler */
71 extern
72 const char* SCIPrelaxGetDesc(
73  SCIP_RELAX* relax /**< relaxation handler */
74  );
75 
76 /** gets priority of relaxation handler */
77 extern
79  SCIP_RELAX* relax /**< relaxation handler */
80  );
81 
82 /** gets frequency of relaxation handler */
83 extern
85  SCIP_RELAX* relax /**< relaxation handler */
86  );
87 
88 /** gets time in seconds used in this relaxator for setting up for next stages */
89 extern
91  SCIP_RELAX* relax /**< relaxator */
92  );
93 
94 /** gets time in seconds used in this relaxation handler */
95 extern
97  SCIP_RELAX* relax /**< relaxation handler */
98  );
99 
100 /** gets the total number of times, the relaxation handler was called */
101 extern
103  SCIP_RELAX* relax /**< relaxation handler */
104  );
105 
106 /** is relaxation handler initialized? */
107 extern
109  SCIP_RELAX* relax /**< relaxation handler */
110  );
111 
112 /** marks the current relaxation unsolved, s.t. the relaxation handler is called again in the next solving round */
113 extern
115  SCIP_RELAX* relax /**< relaxation handler */
116  );
117 
118 /* @} */
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 
124 #endif
SCIP_DECL_SORTPTRCOMP(SCIPrelaxComp)
Definition: relax.c:44
type definitions for miscellaneous datastructures
SCIP_Longint SCIPrelaxGetNCalls(SCIP_RELAX *relax)
Definition: relax.c:566
SCIP_Real SCIPrelaxGetTime(SCIP_RELAX *relax)
Definition: relax.c:556
int SCIPrelaxGetPriority(SCIP_RELAX *relax)
Definition: relax.c:500
const char * SCIPrelaxGetName(SCIP_RELAX *relax)
Definition: relax.c:480
SCIP_RELAXDATA * SCIPrelaxGetData(SCIP_RELAX *relax)
Definition: relax.c:393
void SCIPrelaxMarkUnsolved(SCIP_RELAX *relax)
Definition: relax.c:598
type definitions for relaxators
int SCIPrelaxGetFreq(SCIP_RELAX *relax)
Definition: relax.c:524
SCIP_Real SCIPrelaxGetSetupTime(SCIP_RELAX *relax)
Definition: relax.c:534
#define SCIP_Bool
Definition: def.h:69
const char * SCIPrelaxGetDesc(SCIP_RELAX *relax)
Definition: relax.c:490
void SCIPrelaxSetData(SCIP_RELAX *relax, SCIP_RELAXDATA *relaxdata)
Definition: relax.c:403
struct SCIP_RelaxData SCIP_RELAXDATA
Definition: type_relax.h:38
SCIP_Bool SCIPrelaxIsInitialized(SCIP_RELAX *relax)
Definition: relax.c:576
#define SCIP_Real
Definition: def.h:157
#define SCIP_Longint
Definition: def.h:142
common defines and data types used in all packages of SCIP