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