Scippy

SCIP

Solving Constraint Integer Programs

objrelax.cpp File Reference

Detailed Description

C++ wrapper for relaxators.

Author
Tobias Achterberg

Definition in file objrelax.cpp.

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

Go to the source code of this file.

Functions

static SCIP_DECL_RELAXCOPY (relaxCopyObj)
 
static SCIP_DECL_RELAXFREE (relaxFreeObj)
 
static SCIP_DECL_RELAXINIT (relaxInitObj)
 
static SCIP_DECL_RELAXEXIT (relaxExitObj)
 
static SCIP_DECL_RELAXINITSOL (relaxInitsolObj)
 
static SCIP_DECL_RELAXEXITSOL (relaxExitsolObj)
 
static SCIP_DECL_RELAXEXEC (relaxExecObj)
 
SCIP_RETCODE SCIPincludeObjRelax (SCIP *scip, scip::ObjRelax *objrelax, SCIP_Bool deleteobject)
 
scip::ObjRelaxSCIPfindObjRelax (SCIP *scip, const char *name)
 
scip::ObjRelaxSCIPgetObjRelax (SCIP *scip, SCIP_RELAX *relax)
 

Function Documentation

◆ SCIP_DECL_RELAXCOPY()

static SCIP_DECL_RELAXCOPY ( relaxCopyObj  )
static

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

Definition at line 53 of file objrelax.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeObjRelax(), SCIPrelaxGetData(), and TRUE.

◆ SCIP_DECL_RELAXFREE()

static SCIP_DECL_RELAXFREE ( relaxFreeObj  )
static

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

Definition at line 78 of file objrelax.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPrelaxGetData(), and SCIPrelaxSetData().

◆ SCIP_DECL_RELAXINIT()

static SCIP_DECL_RELAXINIT ( relaxInitObj  )
static

initialization method of relaxator (called after problem was transformed)

Definition at line 104 of file objrelax.cpp.

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

◆ SCIP_DECL_RELAXEXIT()

static SCIP_DECL_RELAXEXIT ( relaxExitObj  )
static

deinitialization method of relaxator (called before transformed problem is freed)

Definition at line 122 of file objrelax.cpp.

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

◆ SCIP_DECL_RELAXINITSOL()

static SCIP_DECL_RELAXINITSOL ( relaxInitsolObj  )
static

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

Definition at line 139 of file objrelax.cpp.

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

◆ SCIP_DECL_RELAXEXITSOL()

static SCIP_DECL_RELAXEXITSOL ( relaxExitsolObj  )
static

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

Definition at line 156 of file objrelax.cpp.

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

◆ SCIP_DECL_RELAXEXEC()

static SCIP_DECL_RELAXEXEC ( relaxExecObj  )
static

execution method of relaxator

Definition at line 173 of file objrelax.cpp.

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

◆ SCIPincludeObjRelax()

SCIP_RETCODE SCIPincludeObjRelax ( SCIP scip,
scip::ObjRelax objrelax,
SCIP_Bool  deleteobject 
)

creates the relaxator for the given relaxator object and includes it in SCIP

Parameters
scipSCIP data structure
objrelaxrelaxator object
deleteobjectshould the relaxator object be deleted when relaxator is freed?

Definition at line 195 of file objrelax.cpp.

References NULL, SCIP_CALL, scip::ObjRelax::scip_desc_, scip::ObjRelax::scip_freq_, scip::ObjRelax::scip_includeslp_, scip::ObjRelax::scip_name_, SCIP_OKAY, scip::ObjRelax::scip_priority_, and SCIPincludeRelax().

Referenced by SCIP_DECL_RELAXCOPY(), and scip::ObjRelax::SCIP_DECL_RELAXEXITSOL().

◆ SCIPfindObjRelax()

scip::ObjRelax* SCIPfindObjRelax ( SCIP scip,
const char *  name 
)

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

Parameters
scipSCIP data structure
namename of relaxator

Definition at line 223 of file objrelax.cpp.

References NULL, SCIPfindRelax(), and SCIPrelaxGetData().

Referenced by scip::ObjRelax::SCIP_DECL_RELAXEXITSOL().

◆ SCIPgetObjRelax()

scip::ObjRelax* SCIPgetObjRelax ( SCIP scip,
SCIP_RELAX relax 
)

returns the relax object for the given relaxator

Parameters
scipSCIP data structure
relaxrelaxator

Definition at line 242 of file objrelax.cpp.

References NULL, and SCIPrelaxGetData().

Referenced by scip::ObjRelax::SCIP_DECL_RELAXEXITSOL().