Detailed Description
C++ wrapper for user variable data.
Definition in file objvardata.cpp.
Go to the source code of this file.
Functions | |
static | SCIP_DECL_VARDELORIG (varDelorigObj) |
static | SCIP_DECL_VARTRANS (varTransObj) |
static | SCIP_DECL_VARDELTRANS (varDeltransObj) |
static | SCIP_DECL_VARCOPY (varCopyObj) |
SCIP_RETCODE | SCIPcreateObjVar (SCIP *scip, SCIP_VAR **var, const char *name, SCIP_Real lb, SCIP_Real ub, SCIP_Real obj, SCIP_VARTYPE vartype, SCIP_Bool initial, SCIP_Bool removable, scip::ObjVardata *objvardata, SCIP_Bool deleteobject) |
scip::ObjVardata * | SCIPgetObjVardata (SCIP *scip, SCIP_VAR *var) |
Function Documentation
◆ SCIP_DECL_VARDELORIG()
|
static |
frees user data of original variable (called when the original variable is freed)
Definition at line 62 of file objvardata.cpp.
◆ SCIP_DECL_VARTRANS()
|
static |
◆ SCIP_DECL_VARDELTRANS()
|
static |
frees user data of transformed variable (called when the transformed variable is freed)
Definition at line 111 of file objvardata.cpp.
◆ SCIP_DECL_VARCOPY()
|
static |
copies user data if you want to copy it to a subscip
Definition at line 133 of file objvardata.cpp.
References NULL, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_SUCCESS, and TRUE.
◆ SCIPcreateObjVar()
SCIP_RETCODE SCIPcreateObjVar | ( | SCIP * | scip, |
SCIP_VAR ** | var, | ||
const char * | name, | ||
SCIP_Real | lb, | ||
SCIP_Real | ub, | ||
SCIP_Real | obj, | ||
SCIP_VARTYPE | vartype, | ||
SCIP_Bool | initial, | ||
SCIP_Bool | removable, | ||
scip::ObjVardata * | objvardata, | ||
SCIP_Bool | deleteobject | ||
) |
create and capture problem variable and associates the given variable data with the variable; if variable is of integral type, fractional bounds are automatically rounded
- Parameters
-
scip SCIP data structure var pointer to variable object name name of variable, or NULL for automatic name creation lb lower bound of variable ub upper bound of variable obj objective function value vartype type of variable initial should var's column be present in the initial root LP? removable is var's column removable from the LP (due to aging or cleanup)? objvardata user variable data object deleteobject should the user variable data object be deleted when variable is freed?
Definition at line 175 of file objvardata.cpp.
References SCIP_CALL, SCIP_OKAY, and SCIPcreateVar().
◆ SCIPgetObjVardata()
scip::ObjVardata * SCIPgetObjVardata | ( | SCIP * | scip, |
SCIP_VAR * | var | ||
) |
gets user variable data object for given problem variable Warning! This method should only be called after a variable was created with SCIPcreateObjVar(). Otherwise, a segmentation fault may arise, or an undefined pointer is returned.
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 207 of file objvardata.cpp.
References NULL, and SCIPvarGetData().