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-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_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 pscostweightedmean[2]; /**< weighted mean of (partial) pseudo cost values for down/upwards branching */
39  SCIP_Real pscostvariance[2]; /**< weighted variance of (partial) pseudo cost history for down/upwards branching */
40  SCIP_Real vsids[2]; /**< degree of how often the variable was reason for a conflict */
41  SCIP_Real conflengthsum[2]; /**< overall length of all active conflicts for which the variable gave reason */
42  SCIP_Real inferencesum[2]; /**< degree of how often branching on the variable lead to inference of another bound */
43  SCIP_Real cutoffsum[2]; /**< degree of how often branching on the variable lead to an infeasible sub problem */
44  SCIP_Longint nactiveconflicts[2];/**< number of active conflicts for which the variable gave reason */
45  SCIP_Longint nbranchings[2]; /**< nr of times, the variable changed its bounds due to branching */
46  SCIP_Longint branchdepthsum[2]; /**< sum of depth levels, at which the branching bound changes took place */
47 };
48 
49 /** branching and inference history information for single variable dependent on the domain value */
51 {
52  SCIP_HISTORY** histories; /**< branching and inference history information for individual domain values */
53  SCIP_Real* values; /**< (sorted) array containing the domain values */
54  int nvalues; /**< number of different domain values */
55  int sizevalues; /**< size of the both arrays */
56 };
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif
SCIP_Longint nactiveconflicts[2]
SCIP_Real pscostcount[2]
SCIP_Real pscostvariance[2]
SCIP_Real pscostweightedmean[2]
SCIP_Real vsids[2]
SCIP_Real inferencesum[2]
SCIP_Real conflengthsum[2]
SCIP_Real * values
SCIP_HISTORY ** histories
SCIP_Longint branchdepthsum[2]
#define SCIP_Real
Definition: def.h:127
type definitions for branching and inference history
#define SCIP_Longint
Definition: def.h:112
SCIP_Real cutoffsum[2]
common defines and data types used in all packages of SCIP
SCIP_Longint nbranchings[2]