Scippy

SCIP

Solving Constraint Integer Programs

struct_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 struct_relax.h
17  * @ingroup INTERNALAPI
18  * @brief data structures for relaxators
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_STRUCT_RELAX_H__
25 #define __SCIP_STRUCT_RELAX_H__
26 
27 
28 #include "scip/def.h"
29 #include "scip/type_clock.h"
30 #include "scip/type_relax.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /** relaxators data */
37 struct SCIP_Relax
38 {
39  SCIP_Longint ncalls; /**< number of times, this relaxator was called */
40  SCIP_Longint lastsolvednode; /**< last total nodes counter, where the current relaxation was solved */
41  char* name; /**< name of relaxator */
42  char* desc; /**< description of relaxator */
43  SCIP_DECL_RELAXCOPY ((*relaxcopy)); /**< copy method of relaxator or NULL if you don't want to copy your plugin into sub-SCIPs */
44  SCIP_DECL_RELAXFREE ((*relaxfree)); /**< destructor of relaxator */
45  SCIP_DECL_RELAXINIT ((*relaxinit)); /**< initialize relaxator */
46  SCIP_DECL_RELAXEXIT ((*relaxexit)); /**< deinitialize relaxator */
47  SCIP_DECL_RELAXINITSOL((*relaxinitsol)); /**< solving process initialization method of relaxator */
48  SCIP_DECL_RELAXEXITSOL((*relaxexitsol)); /**< solving process deinitialization method of relaxator */
49  SCIP_DECL_RELAXEXEC ((*relaxexec)); /**< execution method of relaxator */
50  SCIP_RELAXDATA* relaxdata; /**< relaxators local data */
51  SCIP_CLOCK* setuptime; /**< time spend for setting up this relaxator for the next stages */
52  SCIP_CLOCK* relaxclock; /**< relaxation time */
53  int priority; /**< priority of the relaxator */
54  int freq; /**< frequency for calling relaxator */
55  SCIP_Bool initialized; /**< is relaxator initialized? */
56  SCIP_Bool includeslp; /**< does the relaxator contain all cuts in the LP? */
57 };
58 
59 /** relaxation information data */
61 {
67 };
68 
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif
SCIP_DECL_RELAXEXITSOL((*relaxexitsol))
char * desc
Definition: struct_relax.h:42
SCIP_DECL_RELAXCOPY((*relaxcopy))
SCIP_Real bestrelaxsolobj
Definition: struct_relax.h:66
SCIP_Bool includeslp
Definition: struct_relax.h:56
SCIP_DECL_RELAXINIT((*relaxinit))
SCIP_DECL_RELAXEXEC((*relaxexec))
SCIP_DECL_RELAXFREE((*relaxfree))
SCIP_RELAXDATA * relaxdata
Definition: struct_relax.h:50
SCIP_CLOCK * relaxclock
Definition: struct_relax.h:52
SCIP_Real relaxsolobjval
Definition: struct_relax.h:62
SCIP_Bool relaxsolvalid
Definition: struct_relax.h:63
SCIP_CLOCK * setuptime
Definition: struct_relax.h:51
type definitions for relaxators
char * name
Definition: struct_relax.h:41
#define SCIP_Bool
Definition: def.h:61
SCIP_Bool initialized
Definition: struct_relax.h:55
SCIP_Longint lastsolvednode
Definition: struct_relax.h:40
type definitions for clocks and timing issues
SCIP_Longint ncalls
Definition: struct_relax.h:39
SCIP_SOL * bestrelaxsol
Definition: struct_relax.h:65
struct SCIP_RelaxData SCIP_RELAXDATA
Definition: type_relax.h:38
SCIP_DECL_RELAXEXIT((*relaxexit))
SCIP_Bool relaxsolzero
Definition: struct_relax.h:64
#define SCIP_Real
Definition: def.h:145
#define SCIP_Longint
Definition: def.h:130
SCIP_DECL_RELAXINITSOL((*relaxinitsol))
common defines and data types used in all packages of SCIP