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-2017 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 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 /** returns whether the relaxation handler contains all LP rows */
89 extern
91  SCIP_RELAX* relax /**< relaxation handler */
92  );
93 
94 /** defines whether the relaxation handler contains all LP rows */
95 extern
97  SCIP_RELAX* relax, /**< relaxator */
98  SCIP_Bool includeslp /**< does the relaxator contain all cuts in the LP? */
99  );
100 
101 /** gets time in seconds used in this relaxator for setting up for next stages */
102 extern
104  SCIP_RELAX* relax /**< relaxator */
105  );
106 
107 /** gets time in seconds used in this relaxation handler */
108 extern
110  SCIP_RELAX* relax /**< relaxation handler */
111  );
112 
113 /** gets the total number of times, the relaxation handler was called */
114 extern
116  SCIP_RELAX* relax /**< relaxation handler */
117  );
118 
119 /** is relaxation handler initialized? */
120 extern
122  SCIP_RELAX* relax /**< relaxation handler */
123  );
124 
125 /** marks the current relaxation unsolved, s.t. the relaxation handler is called again in the next solving round */
126 extern
128  SCIP_RELAX* relax /**< relaxation handler */
129  );
130 
131 /* @} */
132 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif
SCIP_Bool SCIPrelaxIncludesLp(SCIP_RELAX *relax)
Definition: relax.c:522
void SCIPrelaxSetIncludesLp(SCIP_RELAX *relax, SCIP_Bool includeslp)
Definition: relax.c:532
SCIP_DECL_SORTPTRCOMP(SCIPrelaxComp)
Definition: relax.c:44
type definitions for miscellaneous datastructures
SCIP_Longint SCIPrelaxGetNCalls(SCIP_RELAX *relax)
Definition: relax.c:553
SCIP_Real SCIPrelaxGetTime(SCIP_RELAX *relax)
Definition: relax.c:543
int SCIPrelaxGetPriority(SCIP_RELAX *relax)
Definition: relax.c:466
const char * SCIPrelaxGetName(SCIP_RELAX *relax)
Definition: relax.c:446
SCIP_RELAXDATA * SCIPrelaxGetData(SCIP_RELAX *relax)
Definition: relax.c:359
void SCIPrelaxMarkUnsolved(SCIP_RELAX *relax)
Definition: relax.c:585
type definitions for relaxators
int SCIPrelaxGetFreq(SCIP_RELAX *relax)
Definition: relax.c:490
SCIP_Real SCIPrelaxGetSetupTime(SCIP_RELAX *relax)
Definition: relax.c:500
#define SCIP_Bool
Definition: def.h:61
const char * SCIPrelaxGetDesc(SCIP_RELAX *relax)
Definition: relax.c:456
void SCIPrelaxSetData(SCIP_RELAX *relax, SCIP_RELAXDATA *relaxdata)
Definition: relax.c:369
struct SCIP_RelaxData SCIP_RELAXDATA
Definition: type_relax.h:38
SCIP_Bool SCIPrelaxIsInitialized(SCIP_RELAX *relax)
Definition: relax.c:563
#define SCIP_Real
Definition: def.h:135
#define SCIP_Longint
Definition: def.h:120
common defines and data types used in all packages of SCIP