Scippy

SCIP

Solving Constraint Integer Programs

boundstore.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 boundstore.h
17  * @ingroup PARALLEL
18  * @brief the interface of the boundstore structure
19  * @author Robert Lion Gottwald
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #include "scip/def.h"
25 #include "scip/type_syncstore.h"
26 #include "scip/type_scip.h"
27 #include "scip/type_lp.h"
28 #include "scip/type_retcode.h"
29 
30 #ifndef __SCIP_BOUNDSTORE_H__
31 #define __SCIP_BOUNDSTORE_H__
32 
33 /** create bound store data structure */
34 extern
36  SCIP* scip, /**< scip main datastructure */
37  SCIP_BOUNDSTORE** boundstore, /**< pointer to store the bound store datastructure */
38  int nvars /**< number of variables for which bounds may be stored */
39  );
40 
41 /** free bound store data structure */
42 extern
44  SCIP* scip, /**< scip main datastructure */
45  SCIP_BOUNDSTORE** boundstore /**< pointer to the bound store datastructure */
46  );
47 
48 /** add bound change to bound store data structure */
49 extern
51  SCIP* scip, /**< scip main datastructure */
52  SCIP_BOUNDSTORE* boundstore, /**< the bound store datastructure */
53  int varidx, /**< variable index of bound change, must be smaller than the
54  * number of variables given during creation of bound store */
55  SCIP_Real newbound, /**< bound value of variable */
56  SCIP_BOUNDTYPE boundtype /**< type of new bound */
57  );
58 
59 /** add all bound changes of source to target */
60 extern
62  SCIP* scip, /**< scip main datastructure for target boundstore */
63  SCIP_BOUNDSTORE* target, /**< the bound store datastructure where the bounds get merged in */
64  SCIP_BOUNDSTORE* source /**< the bound store datastructure from which the bounds get merged in */
65  );
66 
67 /** remove all boundchanges from bound store */
68 extern
70  SCIP_BOUNDSTORE* boundstore /**< the bound store datastructure */
71  );
72 
73 /** gets variable index of the i'th stored boundchange */
74 extern
76  SCIP_BOUNDSTORE* boundstore, /**< the bound store datastructure */
77  int i /**< the index of the bound change */
78  );
79 
80 /** gets the type of the i'th stored boundchange */
81 extern
83  SCIP_BOUNDSTORE* boundstore, /**< the bound store datastructure */
84  int i /**< the index of the bound change */
85  );
86 
87 /** gets the bound value of the i'th stored boundchange */
88 extern
90  SCIP_BOUNDSTORE* boundstore, /**< the bound store datastructure */
91  int i /**< the index of the bound change */
92  );
93 
94 /** gets the number of stored bound changes */
95 extern
97  SCIP_BOUNDSTORE* boundstore /**< the bound store datastructure */
98  );
99 
100 #endif
enum SCIP_BoundType SCIP_BOUNDTYPE
Definition: type_lp.h:50
SCIP_RETCODE SCIPboundstoreCreate(SCIP *scip, SCIP_BOUNDSTORE **boundstore, int nvars)
Definition: boundstore.c:30
SCIP_BOUNDTYPE SCIPboundstoreGetChgType(SCIP_BOUNDSTORE *boundstore, int i)
Definition: boundstore.c:164
void SCIPboundstoreClear(SCIP_BOUNDSTORE *boundstore)
Definition: boundstore.c:137
int SCIPboundstoreGetNChgs(SCIP_BOUNDSTORE *boundstore)
Definition: boundstore.c:188
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
type definitions for return codes for SCIP methods
type definitions for LP management
type definitions for SCIP&#39;s main datastructure
void SCIPboundstoreFree(SCIP *scip, SCIP_BOUNDSTORE **boundstore)
Definition: boundstore.c:51
SCIP_RETCODE SCIPboundstoreAdd(SCIP *scip, SCIP_BOUNDSTORE *boundstore, int varidx, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype)
Definition: boundstore.c:66
int SCIPboundstoreGetChgVaridx(SCIP_BOUNDSTORE *boundstore, int i)
Definition: boundstore.c:152
SCIP_Real SCIPboundstoreGetChgVal(SCIP_BOUNDSTORE *boundstore, int i)
Definition: boundstore.c:176
the type definitions for the synchronization store
#define SCIP_Real
Definition: def.h:149
SCIP_RETCODE SCIPboundstoreMerge(SCIP *scip, SCIP_BOUNDSTORE *target, SCIP_BOUNDSTORE *source)
Definition: boundstore.c:115
common defines and data types used in all packages of SCIP