objbenderscut.cpp
Go to the documentation of this file.
30 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
47 SCIP_Bool deleteobject; /**< should the Benders' decomposition object be deleted when benders is freed? */
76 newobjbenderscut = dynamic_cast<scip::ObjBenderscut*> (benderscutdata->objbenderscut->clone(scip));
79 SCIP_CALL( SCIPincludeObjBenderscut(scip, SCIPgetObjBenders(scip, benders), newobjbenderscut, TRUE) );
111 /** initialization method of Benders' decomposition cut (called after problem was transformed) */
129 /** deinitialization method of Benders' decomposition cut (called before transformed problem is freed) */
146 /** solving process initialization method of Benders' decomposition cut (called when branch and bound process is about to begin) */
163 /** solving process deinitialization method of Benders' decomposition cut (called before branch and bound process data is freed) */
191 SCIP_CALL( benderscutdata->objbenderscut->scip_exec(scip, benders, benderscut, sol, probnumber, type, result) );
204 /** creates the Benders' decomposition cut for the given Benders' decomposition cut object and includes it in SCIP */
209 SCIP_Bool deleteobject /**< should the Benders' decomposition cut object be deleted when benderscut is freed? */
228 SCIP_CALL( SCIPincludeBenderscut(scip, benders, objbenderscut->scip_name_, objbenderscut->scip_desc_,
229 objbenderscut->scip_priority_, objbenderscut->scip_islpcut_, benderscutCopyObj, benderscutFreeObj,
230 benderscutInitObj, benderscutExitObj, benderscutInitsolObj, benderscutExitsolObj, benderscutExecObj,
scip::ObjBenders * SCIPgetObjBenders(SCIP *scip, SCIP_BENDERS *benders)
Definition: objbenders.cpp:392
Definition: struct_scip.h:69
SCIP_BENDERSCUTDATA * SCIPbenderscutGetData(SCIP_BENDERSCUT *benderscut)
Definition: benderscut.c:403
Definition: struct_benderscut.h:46
scip::ObjBenderscut * SCIPgetObjBenderscut(SCIP *scip, SCIP_BENDERSCUT *benderscut)
Definition: objbenderscut.cpp:260
static SCIP_DECL_BENDERSCUTEXIT(benderscutExitObj)
Definition: objbenderscut.cpp:131
static SCIP_DECL_BENDERSCUTINIT(benderscutInitObj)
Definition: objbenderscut.cpp:113
void SCIPbenderscutSetData(SCIP_BENDERSCUT *benderscut, SCIP_BENDERSCUTDATA *benderscutdata)
Definition: benderscut.c:413
SCIP_RETCODE SCIPincludeBenderscut(SCIP *scip, SCIP_BENDERS *benders, const char *name, const char *desc, int priority, SCIP_Bool islpcut, SCIP_DECL_BENDERSCUTCOPY((*benderscutcopy)), SCIP_DECL_BENDERSCUTFREE((*benderscutfree)), SCIP_DECL_BENDERSCUTINIT((*benderscutinit)), SCIP_DECL_BENDERSCUTEXIT((*benderscutexit)), SCIP_DECL_BENDERSCUTINITSOL((*benderscutinitsol)), SCIP_DECL_BENDERSCUTEXITSOL((*benderscutexitsol)), SCIP_DECL_BENDERSCUTEXEC((*benderscutexec)), SCIP_BENDERSCUTDATA *benderscutdata)
Definition: scip_benders.c:1085
static SCIP_DECL_BENDERSCUTFREE(benderscutFreeObj)
Definition: objbenderscut.cpp:87
Definition: struct_benders.h:57
static SCIP_DECL_BENDERSCUTINITSOL(benderscutInitsolObj)
Definition: objbenderscut.cpp:148
SCIP_BENDERSCUT * SCIPfindBenderscut(SCIP_BENDERS *benders, const char *name)
Definition: benders.c:6919
Definition: type_retcode.h:42
SCIP_BENDERS * SCIPfindBenders(SCIP *scip, const char *name)
Definition: scip_benders.c:493
C++ wrapper for Benders' decomposition cuts.
SCIP_RETCODE SCIPincludeObjBenderscut(SCIP *scip, scip::ObjBenders *objbenders, scip::ObjBenderscut *objbenderscut, SCIP_Bool deleteobject)
Definition: objbenderscut.cpp:205
scip::ObjBenderscut * SCIPfindObjBenderscut(scip::ObjBenders *objbenders, const char *name)
Definition: objbenderscut.cpp:237
static SCIP_DECL_BENDERSCUTEXITSOL(benderscutExitsolObj)
Definition: objbenderscut.cpp:165
static SCIP_DECL_BENDERSCUTCOPY(benderscutCopyObj)
Definition: objbenderscut.cpp:62
static SCIP_DECL_BENDERSCUTEXEC(benderscutExecObj)
Definition: objbenderscut.cpp:182
Definition: objbenders.h:43