Scippy

SCIP

Solving Constraint Integer Programs

objnodesel.cpp File Reference

Detailed Description

C++ wrapper for node selectors.

Author
Tobias Achterberg

Definition in file objnodesel.cpp.

#include <cassert>
#include "objnodesel.h"

Go to the source code of this file.

Functions

static SCIP_DECL_NODESELCOPY (nodeselCopyObj)
 
static SCIP_DECL_NODESELFREE (nodeselFreeObj)
 
static SCIP_DECL_NODESELINIT (nodeselInitObj)
 
static SCIP_DECL_NODESELEXIT (nodeselExitObj)
 
static SCIP_DECL_NODESELINITSOL (nodeselInitsolObj)
 
static SCIP_DECL_NODESELEXITSOL (nodeselExitsolObj)
 
static SCIP_DECL_NODESELSELECT (nodeselSelectObj)
 
static SCIP_DECL_NODESELCOMP (nodeselCompObj)
 
SCIP_RETCODE SCIPincludeObjNodesel (SCIP *scip, scip::ObjNodesel *objnodesel, SCIP_Bool deleteobject)
 
scip::ObjNodeselSCIPfindObjNodesel (SCIP *scip, const char *name)
 
scip::ObjNodeselSCIPgetObjNodesel (SCIP *scip, SCIP_NODESEL *nodesel)
 

Function Documentation

static SCIP_DECL_NODESELCOPY ( nodeselCopyObj  )
static

copy method for node selector plugins (called when SCIP copies plugins)

Definition at line 53 of file objnodesel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeObjNodesel(), SCIPnodeselGetData(), and TRUE.

static SCIP_DECL_NODESELFREE ( nodeselFreeObj  )
static

destructor of node selector to free user data (called when SCIP is exiting)

Definition at line 78 of file objnodesel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPnodeselGetData(), and SCIPnodeselSetData().

static SCIP_DECL_NODESELINIT ( nodeselInitObj  )
static

initialization method of node selector (called after problem was transformed)

Definition at line 104 of file objnodesel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnodeselGetData().

static SCIP_DECL_NODESELEXIT ( nodeselExitObj  )
static

deinitialization method of node selector (called before transformed problem is freed)

Definition at line 122 of file objnodesel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnodeselGetData().

static SCIP_DECL_NODESELINITSOL ( nodeselInitsolObj  )
static

solving process initialization method of node selector (called when branch and bound process is about to begin)

Definition at line 139 of file objnodesel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnodeselGetData().

static SCIP_DECL_NODESELEXITSOL ( nodeselExitsolObj  )
static

solving process deinitialization method of node selector (called before branch and bound process data is freed)

Definition at line 156 of file objnodesel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnodeselGetData().

static SCIP_DECL_NODESELSELECT ( nodeselSelectObj  )
static

node selection method of node selector

Definition at line 173 of file objnodesel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnodeselGetData().

static SCIP_DECL_NODESELCOMP ( nodeselCompObj  )
static

node comparison method of node selector

Definition at line 190 of file objnodesel.cpp.

References NULL, and SCIPnodeselGetData().

SCIP_RETCODE SCIPincludeObjNodesel ( SCIP scip,
scip::ObjNodesel objnodesel,
SCIP_Bool  deleteobject 
)

creates the node selector for the given node selector object and includes it in SCIP

Parameters
scipSCIP data structure
objnodeselnode selector object
deleteobjectshould the node selector object be deleted when node selector is freed?

Definition at line 210 of file objnodesel.cpp.

References NULL, SCIP_CALL, scip::ObjNodesel::scip_desc_, scip::ObjNodesel::scip_memsavepriority_, scip::ObjNodesel::scip_name_, SCIP_OKAY, scip::ObjNodesel::scip_stdpriority_, and SCIPincludeNodesel().

Referenced by SCIP_DECL_NODESELCOPY(), and scip::ObjNodesel::SCIP_DECL_NODESELEXITSOL().

scip::ObjNodesel* SCIPfindObjNodesel ( SCIP scip,
const char *  name 
)

returns the nodesel object of the given name, or 0 if not existing

Parameters
scipSCIP data structure
namename of node selector

Definition at line 238 of file objnodesel.cpp.

References NULL, SCIPfindNodesel(), and SCIPnodeselGetData().

Referenced by scip::ObjNodesel::SCIP_DECL_NODESELEXITSOL().

scip::ObjNodesel* SCIPgetObjNodesel ( SCIP scip,
SCIP_NODESEL nodesel 
)

returns the nodesel object for the given node selector

Parameters
scipSCIP data structure
nodeselnode selector

Definition at line 257 of file objnodesel.cpp.

References NULL, and SCIPnodeselGetData().

Referenced by scip::ObjNodesel::SCIP_DECL_NODESELEXITSOL().