type_var.h
Go to the documentation of this file.
30 * This file defines the interface for user variable data implemented in C. Each variable can be equipped with a
31 * variable data struct. This data can be accessed via the function SCIPgetVardata() at any time after it is created
37 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
53 SCIP_VARSTATUS_AGGREGATED = 4, /**< variable is aggregated to x = a*y + c in the transformed problem */
55 SCIP_VARSTATUS_NEGATED = 6 /**< variable is the negation of an original or transformed variable */
64 SCIP_VARTYPE_IMPLINT = 2, /**< implicit integer variable: Integrality of this variable is implied for every optimal
84 SCIP_BOUNDCHGTYPE_CONSINFER = 1, /**< bound change was due to an inference of a constraint (domain propagation) */
85 SCIP_BOUNDCHGTYPE_PROPINFER = 2 /**< bound change was due to an inference of a domain propagator */
98 typedef struct SCIP_DomChgBound SCIP_DOMCHGBOUND; /**< static domain change data for bound changes */
99 typedef struct SCIP_DomChgBoth SCIP_DOMCHGBOTH; /**< static domain change data for bound and hole changes */
100 typedef struct SCIP_DomChgDyn SCIP_DOMCHGDYN; /**< dynamic domain change data for bound and hole changes */
103 typedef struct SCIP_BdChgIdx SCIP_BDCHGIDX; /**< bound change index in path from root to current node */
104 typedef struct SCIP_BdChgInfo SCIP_BDCHGINFO; /**< bound change information to track bound changes from root to current node */
105 typedef struct SCIP_BranchingData SCIP_BRANCHINGDATA; /**< data for branching decision bound changes */
109 typedef struct SCIP_Holelist SCIP_HOLELIST; /**< list of holes in a domain of an integer variable */
127 #define SCIP_DECL_VARDELORIG(x) SCIP_RETCODE x (SCIP* scip, SCIP_VAR* var, SCIP_VARDATA** vardata)
147 #define SCIP_DECL_VARTRANS(x) SCIP_RETCODE x (SCIP* scip, SCIP_VAR* sourcevar, SCIP_VARDATA* sourcedata, SCIP_VAR* targetvar, SCIP_VARDATA** targetdata)
160 #define SCIP_DECL_VARDELTRANS(x) SCIP_RETCODE x (SCIP* scip, SCIP_VAR* var, SCIP_VARDATA** vardata)
164 * This method should copy the variable data of the source SCIP and create a target variable data for target
165 * variable. This callback is optimal. If the copying process was successful the target variable gets this variable
166 * data assigned. In case the result pointer is set to SCIP_DIDNOTRUN the target variable will have no variable data at
169 * The variable map and the constraint map can be used via the function SCIPgetVarCopy() and SCIPgetConsCopy(),
170 * respectively, to get for certain variables and constraints of the source SCIP the counter parts in the target
171 * SCIP. You should be very carefully in using these two methods since they could lead to infinity loop.
178 * - varmap, : a hashmap which stores the mapping of source variables to corresponding target variables
179 * - consmap, : a hashmap which stores the mapping of source constraints to corresponding target constraints
190 #define SCIP_DECL_VARCOPY(x) SCIP_RETCODE x (SCIP* scip, SCIP* sourcescip, SCIP_VAR* sourcevar, SCIP_VARDATA* sourcedata, \
191 SCIP_HASHMAP* varmap, SCIP_HASHMAP* consmap, SCIP_VAR* targetvar, SCIP_VARDATA** targetdata, SCIP_RESULT* result)
Definition: type_var.h:76
Definition: struct_var.h:108
Definition: type_var.h:49
Definition: struct_var.h:160
Definition: struct_var.h:207
Definition: struct_var.h:91
Definition: type_var.h:62
Definition: type_var.h:75
Definition: struct_var.h:130
Definition: struct_var.h:183
Definition: struct_var.h:168
Definition: type_var.h:84
Definition: struct_var.h:138
Definition: type_var.h:51
Definition: type_var.h:53
Definition: type_var.h:85
Definition: struct_var.h:115
Definition: struct_var.h:65
Definition: type_var.h:64
Definition: struct_var.h:58
Definition: type_var.h:74
Definition: type_var.h:63
Definition: type_var.h:55
Definition: type_var.h:94
Definition: type_var.h:50
Definition: type_var.h:54
Definition: struct_var.h:201
Definition: struct_var.h:51
Definition: type_var.h:93
Definition: struct_var.h:191
Definition: struct_var.h:176
Definition: struct_var.h:148
Definition: type_var.h:52
Definition: type_var.h:83
Definition: type_var.h:67