Scippy

    SCIP

    Solving Constraint Integer Programs

    objvardata.h File Reference

    Detailed Description

    C++ wrapper for user variable data.

    Author
    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.

    Data Structures

    class  scip::ObjVardata
     C++ wrapper for user variable data. More...
     

    Namespaces

    namespace  scip
     

    Functions

    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_RETCODE SCIPcreateObjVarImpl (SCIP *scip, SCIP_VAR **var, const char *name, SCIP_Real lb, SCIP_Real ub, SCIP_Real obj, SCIP_VARTYPE vartype, SCIP_IMPLINTTYPE impltype, SCIP_Bool initial, SCIP_Bool removable, scip::ObjVardata *objvardata, SCIP_Bool deleteobject)
     
    scip::ObjVardataSCIPgetObjVardata (SCIP *scip, SCIP_VAR *var)
     

    Function Documentation

    ◆ 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
    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?

    Definition at line 175 of file objvardata.cpp.

    References SCIP_CALL, SCIP_OKAY, and SCIPcreateVar().

    ◆ SCIPcreateObjVarImpl()

    SCIP_RETCODE SCIPcreateObjVarImpl ( SCIP scip,
    SCIP_VAR **  var,
    const char *  name,
    SCIP_Real  lb,
    SCIP_Real  ub,
    SCIP_Real  obj,
    SCIP_VARTYPE  vartype,
    SCIP_IMPLINTTYPE  impltype,
    SCIP_Bool  initial,
    SCIP_Bool  removable,
    scip::ObjVardata objvardata,
    SCIP_Bool  deleteobject 
    )

    create and capture problem variable with implied type and associates the given variable data with the variable; if variable is of integral type, fractional bounds are automatically rounded

    Parameters
    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
    impltypeimplied integral type of the 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?

    Definition at line 206 of file objvardata.cpp.

    References SCIP_CALL, SCIP_OKAY, and SCIPcreateVarImpl().

    ◆ 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
    scipSCIP data structure
    varproblem variable

    Definition at line 239 of file objvardata.cpp.

    References NULL, and SCIPvarGetData().