Scippy

SCIP

Solving Constraint Integer Programs

objcutsel.cpp File Reference

Detailed Description

C++ wrapper for cut selectors.

Author
Felipe Serrano
Mark Turner

Definition in file objcutsel.cpp.

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

Go to the source code of this file.

Functions

static SCIP_DECL_CUTSELCOPY (cutselCopyObj)
 
static SCIP_DECL_CUTSELFREE (cutselFreeObj)
 
static SCIP_DECL_CUTSELINIT (cutselInitObj)
 
static SCIP_DECL_CUTSELEXIT (cutselExitObj)
 
static SCIP_DECL_CUTSELINITSOL (cutselInitsolObj)
 
static SCIP_DECL_CUTSELEXITSOL (cutselExitsolObj)
 
static SCIP_DECL_CUTSELSELECT (cutselSelectObj)
 
SCIP_RETCODE SCIPincludeObjCutsel (SCIP *scip, scip::ObjCutsel *objcutsel, SCIP_Bool deleteobject)
 
scip::ObjCutselSCIPfindObjCutsel (SCIP *scip, const char *name)
 
scip::ObjCutselSCIPgetObjCutsel (SCIP *scip, SCIP_CUTSEL *cutsel)
 

Function Documentation

◆ SCIP_DECL_CUTSELCOPY()

static SCIP_DECL_CUTSELCOPY ( cutselCopyObj  )
static

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

Definition at line 63 of file objcutsel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPcutselGetData(), SCIPincludeObjCutsel(), and TRUE.

◆ SCIP_DECL_CUTSELFREE()

static SCIP_DECL_CUTSELFREE ( cutselFreeObj  )
static

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

Definition at line 88 of file objcutsel.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPcutselGetData(), and SCIPcutselSetData().

◆ SCIP_DECL_CUTSELINIT()

static SCIP_DECL_CUTSELINIT ( cutselInitObj  )
static

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

Definition at line 114 of file objcutsel.cpp.

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

◆ SCIP_DECL_CUTSELEXIT()

static SCIP_DECL_CUTSELEXIT ( cutselExitObj  )
static

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

Definition at line 132 of file objcutsel.cpp.

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

◆ SCIP_DECL_CUTSELINITSOL()

static SCIP_DECL_CUTSELINITSOL ( cutselInitsolObj  )
static

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

Definition at line 149 of file objcutsel.cpp.

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

◆ SCIP_DECL_CUTSELEXITSOL()

static SCIP_DECL_CUTSELEXITSOL ( cutselExitsolObj  )
static

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

Definition at line 166 of file objcutsel.cpp.

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

◆ SCIP_DECL_CUTSELSELECT()

static SCIP_DECL_CUTSELSELECT ( cutselSelectObj  )
static

cut selection method of cut selector

Definition at line 183 of file objcutsel.cpp.

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

◆ SCIPincludeObjCutsel()

SCIP_RETCODE SCIPincludeObjCutsel ( SCIP scip,
scip::ObjCutsel objcutsel,
SCIP_Bool  deleteobject 
)

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

Parameters
scipSCIP data structure
objcutselcut selector object
deleteobjectshould the cut selector object be deleted when cut selector is freed?

Definition at line 206 of file objcutsel.cpp.

References NULL, SCIP_CALL, scip::ObjCutsel::scip_desc_, scip::ObjCutsel::scip_name_, SCIP_OKAY, scip::ObjCutsel::scip_priority_, and SCIPincludeCutsel().

Referenced by SCIP_DECL_CUTSELCOPY(), and scip::ObjCutsel::SCIP_DECL_CUTSELEXITSOL().

◆ SCIPfindObjCutsel()

scip::ObjCutsel* SCIPfindObjCutsel ( SCIP scip,
const char *  name 
)

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

Parameters
scipSCIP data structure
namename of cut selector

Definition at line 234 of file objcutsel.cpp.

References NULL, SCIPcutselGetData(), and SCIPfindCutsel().

Referenced by scip::ObjCutsel::SCIP_DECL_CUTSELEXITSOL().

◆ SCIPgetObjCutsel()

scip::ObjCutsel* SCIPgetObjCutsel ( SCIP scip,
SCIP_CUTSEL cutsel 
)

returns the cutsel object for the given cut selector

Parameters
scipSCIP data structure
cutselcut selector

Definition at line 253 of file objcutsel.cpp.

References NULL, and SCIPcutselGetData().

Referenced by scip::ObjCutsel::SCIP_DECL_CUTSELEXITSOL().