Solving Constraint Integer Programs

objvardata.h File Reference

Detailed Description

C++ wrapper for user variable data.

Tobias Achterberg

Definition in file objvardata.h.

#include <cassert>
#include "scip/scip.h"
#include "objscip/objcloneable.h"

Go to the source code of this file.


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::ObjVardataSCIPgetObjVardata (SCIP *scip, SCIP_VAR *var)

Function Documentation

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

scipSCIP data structure
varpointer to variable object
namename of variable, or NULL for automatic name creation
lblower bound of variable
ubupper bound of variable
objobjective function value
vartypetype of variable
initialshould var's column be present in the initial root LP?
removableis var's column removable from the LP (due to aging or cleanup)?
objvardatauser variable data object
deleteobjectshould the user variable data object be deleted when variable is freed?
scip::ObjVardata* SCIPgetObjVardata ( SCIP scip,

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.

scipSCIP data structure
varproblem variable