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