Scippy

SCIP

Solving Constraint Integer Programs

objbranchrule.cpp File Reference

Detailed Description

C++ wrapper for branching rules.

Author
Tobias Achterberg

Definition in file objbranchrule.cpp.

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

Go to the source code of this file.

Functions

static SCIP_DECL_BRANCHCOPY (branchCopyObj)
 
static SCIP_DECL_BRANCHFREE (branchFreeObj)
 
static SCIP_DECL_BRANCHINIT (branchInitObj)
 
static SCIP_DECL_BRANCHEXIT (branchExitObj)
 
static SCIP_DECL_BRANCHINITSOL (branchInitsolObj)
 
static SCIP_DECL_BRANCHEXITSOL (branchExitsolObj)
 
static SCIP_DECL_BRANCHEXECLP (branchExeclpObj)
 
static SCIP_DECL_BRANCHEXECEXT (branchExecextObj)
 
static SCIP_DECL_BRANCHEXECPS (branchExecpsObj)
 
SCIP_RETCODE SCIPincludeObjBranchrule (SCIP *scip, scip::ObjBranchrule *objbranchrule, SCIP_Bool deleteobject)
 
scip::ObjBranchruleSCIPfindObjBranchrule (SCIP *scip, const char *name)
 
scip::ObjBranchruleSCIPgetObjBranchrule (SCIP *scip, SCIP_BRANCHRULE *branchrule)
 

Function Documentation

static SCIP_DECL_BRANCHCOPY ( branchCopyObj  )
static

copy method for branchrule plugins (called when SCIP copies plugins)

Definition at line 53 of file objbranchrule.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPbranchruleGetData(), SCIPincludeObjBranchrule(), and TRUE.

static SCIP_DECL_BRANCHFREE ( branchFreeObj  )
static

destructor of branching rule to free user data (called when SCIP is exiting)

Definition at line 78 of file objbranchrule.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPbranchruleGetData(), and SCIPbranchruleSetData().

static SCIP_DECL_BRANCHINIT ( branchInitObj  )
static

initialization method of branching rule (called after problem was transformed)

Definition at line 104 of file objbranchrule.cpp.

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

static SCIP_DECL_BRANCHEXIT ( branchExitObj  )
static

deinitialization method of branching rule (called before transformed problem is freed)

Definition at line 122 of file objbranchrule.cpp.

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

static SCIP_DECL_BRANCHINITSOL ( branchInitsolObj  )
static

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

Definition at line 139 of file objbranchrule.cpp.

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

static SCIP_DECL_BRANCHEXITSOL ( branchExitsolObj  )
static

solving process deinitialization method of branching rule (called before branch and bound process data is freed)

Definition at line 156 of file objbranchrule.cpp.

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

static SCIP_DECL_BRANCHEXECLP ( branchExeclpObj  )
static

branching execution method for fractional LP solutions

Definition at line 173 of file objbranchrule.cpp.

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

static SCIP_DECL_BRANCHEXECEXT ( branchExecextObj  )
static

branching execution method for external candidates

Definition at line 190 of file objbranchrule.cpp.

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

static SCIP_DECL_BRANCHEXECPS ( branchExecpsObj  )
static

branching execution method for not completely fixed pseudo solutions

Definition at line 207 of file objbranchrule.cpp.

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

SCIP_RETCODE SCIPincludeObjBranchrule ( SCIP scip,
scip::ObjBranchrule objbranchrule,
SCIP_Bool  deleteobject 
)

creates the branching rule for the given branching rule object and includes it in SCIP

Parameters
scipSCIP data structure
objbranchrulebranching rule object
deleteobjectshould the branching rule object be deleted when branching rule is freed?

Definition at line 229 of file objbranchrule.cpp.

References NULL, SCIP_CALL, scip::ObjBranchrule::scip_desc_, scip::ObjBranchrule::scip_maxbounddist_, scip::ObjBranchrule::scip_maxdepth_, scip::ObjBranchrule::scip_name_, SCIP_OKAY, scip::ObjBranchrule::scip_priority_, and SCIPincludeBranchrule().

Referenced by SCIP_DECL_BRANCHCOPY(), and scip::ObjBranchrule::SCIP_DECL_BRANCHEXECPS().

scip::ObjBranchrule* SCIPfindObjBranchrule ( SCIP scip,
const char *  name 
)

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

Parameters
scipSCIP data structure
namename of branching rule

Definition at line 258 of file objbranchrule.cpp.

References NULL, SCIPbranchruleGetData(), and SCIPfindBranchrule().

Referenced by scip::ObjBranchrule::SCIP_DECL_BRANCHEXECPS().

scip::ObjBranchrule* SCIPgetObjBranchrule ( SCIP scip,
SCIP_BRANCHRULE branchrule 
)

returns the branchrule object for the given branching rule

Parameters
scipSCIP data structure
branchrulebranching rule

Definition at line 277 of file objbranchrule.cpp.

References NULL, and SCIPbranchruleGetData().

Referenced by scip::ObjBranchrule::SCIP_DECL_BRANCHEXECPS().