Scippy

SCIP

Solving Constraint Integer Programs

struct_history.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-2014 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_history.h
17  * @brief datastructures for branching and inference history
18  * @author Tobias Achterberg
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_STRUCT_HISTORY_H__
24 #define __SCIP_STRUCT_HISTORY_H__
25 
26 
27 #include "scip/def.h"
28 #include "scip/type_history.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /** branching and inference history information for single variable independent of the domain value */
36 {
37  SCIP_Real pscostcount[2]; /**< nr of (partial) summands in down/upwards pseudo costs (may be fractional) */
38  SCIP_Real pscostsum[2]; /**< sum of (partial) pseudo cost values for down/upwards branching */
39  SCIP_Real vsids[2]; /**< degree of how often the variable was reason for a conflict */
40  SCIP_Real conflengthsum[2]; /**< overall length of all active conflicts for which the variable gave reason */
41  SCIP_Real inferencesum[2]; /**< degree of how often branching on the variable lead to inference of another bound */
42  SCIP_Real cutoffsum[2]; /**< degree of how often branching on the variable lead to an infeasible sub problem */
43  SCIP_Longint nactiveconflicts[2];/**< number of active conflicts for which the variable gave reason */
44  SCIP_Longint nbranchings[2]; /**< nr of times, the variable changed its bounds due to branching */
45  SCIP_Longint branchdepthsum[2]; /**< sum of depth levels, at which the branching bound changes took place */
46 };
47 
48 /** branching and inference history information for single variable dependent on the domain value */
50 {
51  SCIP_HISTORY** histories; /**< branching and inference history information for individual domain values */
52  SCIP_Real* values; /**< (sorted) array containing the domain values */
53  int nvalues; /**< number of different domain values */
54  int sizevalues; /**< size of the both arrays */
55 };
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif
62