Scippy

SCIP

Solving Constraint Integer Programs

struct_cutpool.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-2020 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 scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file struct_cutpool.h
17  * @ingroup INTERNALAPI
18  * @brief datastructures for storing cuts in a cut pool
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_STRUCT_CUTPOOL_H__
25 #define __SCIP_STRUCT_CUTPOOL_H__
26 
27 
28 #include "scip/def.h"
29 #include "scip/type_clock.h"
30 #include "scip/type_misc.h"
31 #include "scip/type_lp.h"
32 #include "scip/type_cutpool.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /** datastructure for cuts in a cut pool */
39 struct SCIP_Cut
40 {
41  SCIP_ROW* row; /**< LP row of this cut */
42  SCIP_Longint processedlp; /**< last LP, where this cut was processed in separation of the LP solution */
43  SCIP_Longint processedlpsol; /**< last LP, where this cut was processed in separation of other solutions */
44  int age; /**< age of the cut: number of successive times, the cut was not violated */
45  int pos; /**< position of cut in the cuts array of the cut pool */
46 };
47 
48 /** storage for pooled cuts */
50 {
51  SCIP_Longint ncalls; /**< number of times, the cutpool was separated */
52  SCIP_Longint ncutsfound; /**< total number of cuts that were separated from the pool */
53  SCIP_CLOCK* poolclock; /**< separation time */
54  SCIP_HASHTABLE* hashtable; /**< hash table to identify already stored cuts */
55  SCIP_CUT** cuts; /**< stored cuts of the pool */
56  SCIP_Longint processedlp; /**< last LP that has been processed for separating the LP */
57  SCIP_Longint processedlpsol; /**< last LP that has been processed for separating other solutions */
58  SCIP_Real processedlpefficacy;/**< minimal efficacy used in last processed LP */
59  SCIP_Real processedlpsolefficacy;/**< minimal efficacy used in last processed LP for separating other solutions */
60  int cutssize; /**< size of cuts array */
61  int ncuts; /**< number of cuts stored in the pool */
62  int nremovablecuts; /**< number of cuts stored in the pool that are marked to be removable */
63  int agelimit; /**< maximum age a cut can reach before it is deleted from the pool */
64  int firstunprocessed; /**< first cut that has not been processed in the last LP */
65  int firstunprocessedsol;/**< first cut that has not been processed in the last LP when separating other solutions */
66  int maxncuts; /**< maximal number of cuts stored in the pool at the same time */
67  SCIP_Bool globalcutpool; /**< is this the global cut pool of SCIP? */
68 };
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif
SCIP_ROW * row
SCIP_HASHTABLE * hashtable
type definitions for miscellaneous datastructures
SCIP_Longint processedlp
SCIP_CUT ** cuts
SCIP_Longint processedlpsol
SCIP_Real processedlpefficacy
SCIP_Longint processedlp
type definitions for LP management
type definitions for storing cuts in a cut pool
SCIP_Longint processedlpsol
SCIP_Real processedlpsolefficacy
#define SCIP_Bool
Definition: def.h:70
int firstunprocessedsol
type definitions for clocks and timing issues
SCIP_CLOCK * poolclock
SCIP_Longint ncalls
SCIP_Longint ncutsfound
#define SCIP_Real
Definition: def.h:163
#define SCIP_Longint
Definition: def.h:148
SCIP_Bool globalcutpool
common defines and data types used in all packages of SCIP