Scippy

SCIP

Solving Constraint Integer Programs

struct_presol.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 struct_presol.h
17  * @ingroup INTERNALAPI
18  * @brief datastructures for presolvers
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_STRUCT_PRESOL_H__
25 #define __SCIP_STRUCT_PRESOL_H__
26 
27 
28 #include "scip/def.h"
29 #include "scip/type_clock.h"
30 #include "scip/type_presol.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /** presolver */
38 {
39  char* name; /**< name of presolver */
40  char* desc; /**< description of presolver */
41  SCIP_DECL_PRESOLCOPY ((*presolcopy)); /**< copy method of presolver or NULL if you don't want to copy your plugin into sub-SCIPs */
42  SCIP_DECL_PRESOLFREE ((*presolfree)); /**< destructor of presolver to free user data (called when SCIP is exiting) */
43  SCIP_DECL_PRESOLINIT ((*presolinit)); /**< initialization method of presolver (called after problem was transformed) */
44  SCIP_DECL_PRESOLEXIT ((*presolexit)); /**< deinitialization method of presolver (called before transformed problem is freed) */
45  SCIP_DECL_PRESOLINITPRE((*presolinitpre));/**< presolving initialization method of presolver (called when presolving is about to begin) */
46  SCIP_DECL_PRESOLEXITPRE((*presolexitpre));/**< presolving deinitialization method of presolver (called after presolving has been finished) */
47  SCIP_DECL_PRESOLEXEC ((*presolexec)); /**< execution method of presolver */
48  SCIP_PRESOLDATA* presoldata; /**< presolver data */
49  SCIP_CLOCK* setuptime; /**< time spend for setting up this presolver for the next stages */
50  SCIP_CLOCK* presolclock; /**< presolving time */
51  int priority; /**< priority of the presolver */
52  int maxrounds; /**< maximal number of presolving rounds the presolver participates in (-1: no limit) */
53  int lastnfixedvars; /**< number of variables fixed before the last call to the presolver */
54  int lastnaggrvars; /**< number of variables aggregated before the last call to the presolver */
55  int lastnchgvartypes; /**< number of variable type changes before the last call to the presolver */
56  int lastnchgbds; /**< number of variable bounds tightened before the last call to the presolver */
57  int lastnaddholes; /**< number of domain holes added before the last call to the presolver */
58  int lastndelconss; /**< number of deleted constraints before the last call to the presolver */
59  int lastnaddconss; /**< number of added constraints before the last call to the presolver */
60  int lastnupgdconss; /**< number of upgraded constraints before the last call to the presolver */
61  int lastnchgcoefs; /**< number of changed coefficients before the last call to the presolver */
62  int lastnchgsides; /**< number of changed left or right hand sides before the last call */
63  int nfixedvars; /**< total number of variables fixed by this presolver */
64  int naggrvars; /**< total number of variables aggregated by this presolver */
65  int nchgvartypes; /**< total number of variable type changes by this presolver */
66  int nchgbds; /**< total number of variable bounds tightened by this presolver */
67  int naddholes; /**< total number of domain holes added by this presolver */
68  int ndelconss; /**< total number of deleted constraints by this presolver */
69  int naddconss; /**< total number of added constraints by this presolver */
70  int nupgdconss; /**< total number of upgraded constraints by this presolver */
71  int nchgcoefs; /**< total number of changed coefficients by this presolver */
72  int nchgsides; /**< total number of changed left or right hand sides by this presolver */
73  int ncalls; /**< number of times the presolver was called and tried to find reductions */
74  SCIP_Bool initialized; /**< is presolver initialized? */
75  SCIP_PRESOLTIMING timing; /**< timing of the presolver */
76 };
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif
int lastnfixedvars
Definition: struct_presol.h:53
struct SCIP_PresolData SCIP_PRESOLDATA
Definition: type_presol.h:37
SCIP_PRESOLTIMING timing
Definition: struct_presol.h:75
SCIP_CLOCK * presolclock
Definition: struct_presol.h:50
SCIP_DECL_PRESOLEXEC((*presolexec))
int lastnupgdconss
Definition: struct_presol.h:60
type definitions for presolvers
SCIP_CLOCK * setuptime
Definition: struct_presol.h:49
SCIP_DECL_PRESOLINIT((*presolinit))
SCIP_DECL_PRESOLCOPY((*presolcopy))
unsigned int SCIP_PRESOLTIMING
Definition: type_timing.h:52
SCIP_DECL_PRESOLFREE((*presolfree))
#define SCIP_Bool
Definition: def.h:70
int lastnchgvartypes
Definition: struct_presol.h:55
SCIP_Bool initialized
Definition: struct_presol.h:74
SCIP_DECL_PRESOLEXITPRE((*presolexitpre))
type definitions for clocks and timing issues
SCIP_PRESOLDATA * presoldata
Definition: struct_presol.h:48
SCIP_DECL_PRESOLEXIT((*presolexit))
common defines and data types used in all packages of SCIP
SCIP_DECL_PRESOLINITPRE((*presolinitpre))