Scippy

SCIP

Solving Constraint Integer Programs

struct_compr.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_compr.h
17  * @brief datastructures for tree compression techniques
18  * @author Jakob Witzig
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_STRUCT_COMPR_H__
24 #define __SCIP_STRUCT_COMPR_H__
25 
26 
27 #include "scip/def.h"
28 #include "scip/type_clock.h"
29 #include "scip/type_compr.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /** tree compression data */
36 struct SCIP_Compr
37 {
38  SCIP_Longint ncalls; /**< number of times, this compression was called */
39  SCIP_Longint nfound; /**< number of compressions found so far by this method */
40  SCIP_Real rate; /**< rate of the last compression */
41  SCIP_Real loi; /**< loss of information of the last compression */
42  char* name; /**< name of tree compression */
43  char* desc; /**< description of tree compression */
44  SCIP_DECL_COMPRCOPY ((*comprcopy)); /**< copy method of tree compression or NULL if you don't want to copy your plugin into sub-SCIPs */
45  SCIP_DECL_COMPRFREE ((*comprfree)); /**< destructor of tree compression */
46  SCIP_DECL_COMPRINIT ((*comprinit)); /**< initialize tree compression */
47  SCIP_DECL_COMPREXIT ((*comprexit)); /**< deinitialize tree compression */
48  SCIP_DECL_COMPRINITSOL ((*comprinitsol)); /**< solving process initialization method of tree compression */
49  SCIP_DECL_COMPREXITSOL ((*comprexitsol)); /**< solving process deinitialization method of tree compression */
50  SCIP_DECL_COMPREXEC ((*comprexec)); /**< execution method of tree compression */
51  SCIP_COMPRDATA* comprdata; /**< tree compression local data */
52  SCIP_CLOCK* setuptime; /**< time spend for setting up this compression for the next stages */
53  SCIP_CLOCK* comprclock; /**< compression execution time */
54  int priority; /**< priority of the tree compression */
55  int minnnodes; /**< minimal number of nodes for calling compression, -1 if no threshold exists */
56  int nnodes; /**< number of nodes of the last compression */
57  SCIP_Bool initialized; /**< is tree compression initialized? */
58 };
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif
SCIP_DECL_COMPRFREE((*comprfree))
SCIP_DECL_COMPREXEC((*comprexec))
SCIP_CLOCK * comprclock
Definition: struct_compr.h:53
SCIP_Longint nfound
Definition: struct_compr.h:39
char * desc
Definition: struct_compr.h:43
SCIP_COMPRDATA * comprdata
Definition: struct_compr.h:51
SCIP_Real loi
Definition: struct_compr.h:41
SCIP_CLOCK * setuptime
Definition: struct_compr.h:52
SCIP_Real rate
Definition: struct_compr.h:40
SCIP_Longint ncalls
Definition: struct_compr.h:38
SCIP_DECL_COMPRINITSOL((*comprinitsol))
SCIP_DECL_COMPRCOPY((*comprcopy))
struct SCIP_ComprData SCIP_COMPRDATA
Definition: type_compr.h:40
#define SCIP_Bool
Definition: def.h:53
type definitions for clocks and timing issues
SCIP_DECL_COMPREXITSOL((*comprexitsol))
SCIP_DECL_COMPREXIT((*comprexit))
type definitions for tree compression
SCIP_Bool initialized
Definition: struct_compr.h:57
#define SCIP_Real
Definition: def.h:127
SCIP_DECL_COMPRINIT((*comprinit))
#define SCIP_Longint
Definition: def.h:112
char * name
Definition: struct_compr.h:42
common defines and data types used in all packages of SCIP