Scippy

SCIP

Solving Constraint Integer Programs

objsepa.cpp File Reference

Detailed Description

C++ wrapper for cut separators.

Author
Tobias Achterberg

Definition in file objsepa.cpp.

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

Go to the source code of this file.

Functions

static SCIP_DECL_SEPACOPY (sepaCopyObj)
 
static SCIP_DECL_SEPAFREE (sepaFreeObj)
 
static SCIP_DECL_SEPAINIT (sepaInitObj)
 
static SCIP_DECL_SEPAEXIT (sepaExitObj)
 
static SCIP_DECL_SEPAINITSOL (sepaInitsolObj)
 
static SCIP_DECL_SEPAEXITSOL (sepaExitsolObj)
 
static SCIP_DECL_SEPAEXECLP (sepaExeclpObj)
 
static SCIP_DECL_SEPAEXECSOL (sepaExecsolObj)
 
SCIP_RETCODE SCIPincludeObjSepa (SCIP *scip, scip::ObjSepa *objsepa, SCIP_Bool deleteobject)
 
scip::ObjSepaSCIPfindObjSepa (SCIP *scip, const char *name)
 
scip::ObjSepaSCIPgetObjSepa (SCIP *scip, SCIP_SEPA *sepa)
 

Function Documentation

◆ SCIP_DECL_SEPACOPY()

static SCIP_DECL_SEPACOPY ( sepaCopyObj  )
static

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

Definition at line 52 of file objsepa.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeObjSepa(), SCIPsepaGetData(), and TRUE.

◆ SCIP_DECL_SEPAFREE()

static SCIP_DECL_SEPAFREE ( sepaFreeObj  )
static

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

Definition at line 77 of file objsepa.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPsepaGetData(), and SCIPsepaSetData().

◆ SCIP_DECL_SEPAINIT()

static SCIP_DECL_SEPAINIT ( sepaInitObj  )
static

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

Definition at line 103 of file objsepa.cpp.

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

◆ SCIP_DECL_SEPAEXIT()

static SCIP_DECL_SEPAEXIT ( sepaExitObj  )
static

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

Definition at line 121 of file objsepa.cpp.

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

◆ SCIP_DECL_SEPAINITSOL()

static SCIP_DECL_SEPAINITSOL ( sepaInitsolObj  )
static

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

Definition at line 138 of file objsepa.cpp.

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

◆ SCIP_DECL_SEPAEXITSOL()

static SCIP_DECL_SEPAEXITSOL ( sepaExitsolObj  )
static

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

Definition at line 155 of file objsepa.cpp.

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

◆ SCIP_DECL_SEPAEXECLP()

static SCIP_DECL_SEPAEXECLP ( sepaExeclpObj  )
static

LP solution separation method of separator

Definition at line 172 of file objsepa.cpp.

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

◆ SCIP_DECL_SEPAEXECSOL()

static SCIP_DECL_SEPAEXECSOL ( sepaExecsolObj  )
static

arbitrary primal solution separation method of separator

Definition at line 189 of file objsepa.cpp.

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

◆ SCIPincludeObjSepa()

SCIP_RETCODE SCIPincludeObjSepa ( SCIP scip,
scip::ObjSepa objsepa,
SCIP_Bool  deleteobject 
)

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

Parameters
scipSCIP data structure
objsepacut separator object
deleteobjectshould the cut separator object be deleted when cut separator is freed?

Definition at line 211 of file objsepa.cpp.

References NULL, SCIP_CALL, scip::ObjSepa::scip_delay_, scip::ObjSepa::scip_desc_, scip::ObjSepa::scip_freq_, scip::ObjSepa::scip_maxbounddist_, scip::ObjSepa::scip_name_, SCIP_OKAY, scip::ObjSepa::scip_priority_, scip::ObjSepa::scip_usessubscip_, and SCIPincludeSepa().

Referenced by SCIP_DECL_SEPACOPY(), and scip::ObjSepa::SCIP_DECL_SEPAEXECSOL().

◆ SCIPfindObjSepa()

scip::ObjSepa* SCIPfindObjSepa ( SCIP scip,
const char *  name 
)

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

Parameters
scipSCIP data structure
namename of cut separator

Definition at line 238 of file objsepa.cpp.

References NULL, SCIPfindSepa(), and SCIPsepaGetData().

Referenced by scip::ObjSepa::SCIP_DECL_SEPAEXECSOL().

◆ SCIPgetObjSepa()

scip::ObjSepa* SCIPgetObjSepa ( SCIP scip,
SCIP_SEPA sepa 
)

returns the sepa object for the given cut separator

Parameters
scipSCIP data structure
sepacut separator

Definition at line 257 of file objsepa.cpp.

References NULL, and SCIPsepaGetData().

Referenced by scip::ObjSepa::SCIP_DECL_SEPAEXECSOL().