Scippy

SCIP

Solving Constraint Integer Programs

objpresol.cpp File Reference

Detailed Description

C++ wrapper for presolvers.

Author
Tobias Achterberg

Definition in file objpresol.cpp.

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

Go to the source code of this file.

Functions

static SCIP_DECL_PRESOLCOPY (presolCopyObj)
 
static SCIP_DECL_PRESOLFREE (presolFreeObj)
 
static SCIP_DECL_PRESOLINIT (presolInitObj)
 
static SCIP_DECL_PRESOLEXIT (presolExitObj)
 
static SCIP_DECL_PRESOLINITPRE (presolInitpreObj)
 
static SCIP_DECL_PRESOLEXITPRE (presolExitpreObj)
 
static SCIP_DECL_PRESOLEXEC (presolExecObj)
 
SCIP_RETCODE SCIPincludeObjPresol (SCIP *scip, scip::ObjPresol *objpresol, SCIP_Bool deleteobject)
 
scip::ObjPresolSCIPfindObjPresol (SCIP *scip, const char *name)
 
scip::ObjPresolSCIPgetObjPresol (SCIP *scip, SCIP_PRESOL *presol)
 

Function Documentation

◆ SCIP_DECL_PRESOLCOPY()

static SCIP_DECL_PRESOLCOPY ( presolCopyObj  )
static

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

Definition at line 53 of file objpresol.cpp.

References SCIP_CALL, SCIP_OKAY, SCIPincludeObjPresol(), SCIPpresolGetData(), and TRUE.

◆ SCIP_DECL_PRESOLFREE()

static SCIP_DECL_PRESOLFREE ( presolFreeObj  )
static

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

Definition at line 78 of file objpresol.cpp.

References SCIP_CALL, SCIP_OKAY, SCIPpresolGetData(), and SCIPpresolSetData().

◆ SCIP_DECL_PRESOLINIT()

static SCIP_DECL_PRESOLINIT ( presolInitObj  )
static

initialization method of presolver (called after problem was transformed)

Definition at line 104 of file objpresol.cpp.

References SCIP_CALL, SCIP_OKAY, and SCIPpresolGetData().

◆ SCIP_DECL_PRESOLEXIT()

static SCIP_DECL_PRESOLEXIT ( presolExitObj  )
static

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

Definition at line 122 of file objpresol.cpp.

References SCIP_CALL, SCIP_OKAY, and SCIPpresolGetData().

◆ SCIP_DECL_PRESOLINITPRE()

static SCIP_DECL_PRESOLINITPRE ( presolInitpreObj  )
static

presolving initialization method of presolver (called when presolving is about to begin)

Definition at line 139 of file objpresol.cpp.

References SCIP_CALL, SCIP_OKAY, and SCIPpresolGetData().

◆ SCIP_DECL_PRESOLEXITPRE()

static SCIP_DECL_PRESOLEXITPRE ( presolExitpreObj  )
static

presolving deinitialization method of presolver (called after presolving has been finished)

Definition at line 156 of file objpresol.cpp.

References SCIP_CALL, SCIP_OKAY, and SCIPpresolGetData().

◆ SCIP_DECL_PRESOLEXEC()

static SCIP_DECL_PRESOLEXEC ( presolExecObj  )
static

execution method of presolver

Definition at line 173 of file objpresol.cpp.

References SCIP_CALL, SCIP_OKAY, and SCIPpresolGetData().

◆ SCIPincludeObjPresol()

SCIP_RETCODE SCIPincludeObjPresol ( SCIP scip,
scip::ObjPresol objpresol,
SCIP_Bool  deleteobject 
)

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

Parameters
scipSCIP data structure
objpresolpresolver object
deleteobjectshould the presolver object be deleted when presolver is freed?

Definition at line 199 of file objpresol.cpp.

References SCIP_CALL, scip::ObjPresol::scip_desc_, scip::ObjPresol::scip_maxrounds_, scip::ObjPresol::scip_name_, SCIP_OKAY, scip::ObjPresol::scip_priority_, scip::ObjPresol::scip_timing_, and SCIPincludePresol().

Referenced by SCIP_DECL_PRESOLCOPY(), and scip::ObjPresol::SCIP_DECL_PRESOLEXITPRE().

◆ SCIPfindObjPresol()

scip::ObjPresol* SCIPfindObjPresol ( SCIP scip,
const char *  name 
)

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

Parameters
scipSCIP data structure
namename of presolver

Definition at line 226 of file objpresol.cpp.

References SCIPfindPresol(), and SCIPpresolGetData().

Referenced by scip::ObjPresol::SCIP_DECL_PRESOLEXITPRE().

◆ SCIPgetObjPresol()

scip::ObjPresol* SCIPgetObjPresol ( SCIP scip,
SCIP_PRESOL presol 
)

returns the presol object for the given presolver

Parameters
scipSCIP data structure
presolpresolver

Definition at line 245 of file objpresol.cpp.

References SCIPpresolGetData().

Referenced by scip::ObjPresol::SCIP_DECL_PRESOLEXITPRE().