objbenderscut.cpp
Go to the documentation of this file.
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
38 SCIP_Bool deleteobject; /**< should the Benders' decomposition object be deleted when benders is freed? */
67 newobjbenderscut = dynamic_cast<scip::ObjBenderscut*> (benderscutdata->objbenderscut->clone(scip));
70 SCIP_CALL( SCIPincludeObjBenderscut(scip, SCIPgetObjBenders(scip, benders), newobjbenderscut, TRUE) );
102 /** initialization method of Benders' decomposition cut (called after problem was transformed) */
120 /** deinitialization method of Benders' decomposition cut (called before transformed problem is freed) */
137 /** solving process initialization method of Benders' decomposition cut (called when branch and bound process is about to begin) */
154 /** solving process deinitialization method of Benders' decomposition cut (called before branch and bound process data is freed) */
182 SCIP_CALL( benderscutdata->objbenderscut->scip_exec(scip, benders, benderscut, sol, probnumber, type, result) );
195 /** creates the Benders' decomposition cut for the given Benders' decomposition cut object and includes it in SCIP */
200 SCIP_Bool deleteobject /**< should the Benders' decomposition cut object be deleted when benderscut is freed? */
219 SCIP_CALL( SCIPincludeBenderscut(scip, benders, objbenderscut->scip_name_, objbenderscut->scip_desc_,
220 objbenderscut->scip_priority_, objbenderscut->scip_islpcut_, benderscutCopyObj, benderscutFreeObj,
221 benderscutInitObj, benderscutExitObj, benderscutInitsolObj, benderscutExitsolObj, benderscutExecObj,
scip::ObjBenders * SCIPgetObjBenders(SCIP *scip, SCIP_BENDERS *benders)
Definition: objbenders.cpp:383
Definition: struct_scip.h:59
Definition: struct_benderscut.h:37
scip::ObjBenderscut * SCIPgetObjBenderscut(SCIP *scip, SCIP_BENDERSCUT *benderscut)
Definition: objbenderscut.cpp:251
static SCIP_DECL_BENDERSCUTEXIT(benderscutExitObj)
Definition: objbenderscut.cpp:122
static SCIP_DECL_BENDERSCUTINIT(benderscutInitObj)
Definition: objbenderscut.cpp:104
static SCIP_DECL_BENDERSCUTFREE(benderscutFreeObj)
Definition: objbenderscut.cpp:78
Definition: struct_benders.h:48
SCIP_BENDERS * SCIPfindBenders(SCIP *scip, const char *name)
Definition: scip_benders.c:484
static SCIP_DECL_BENDERSCUTINITSOL(benderscutInitsolObj)
Definition: objbenderscut.cpp:139
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:1076
void SCIPbenderscutSetData(SCIP_BENDERSCUT *benderscut, SCIP_BENDERSCUTDATA *benderscutdata)
Definition: benderscut.c:404
Definition: type_retcode.h:33
SCIP_BENDERSCUT * SCIPfindBenderscut(SCIP_BENDERS *benders, const char *name)
Definition: benders.c:6898
C++ wrapper for Benders' decomposition cuts.
SCIP_RETCODE SCIPincludeObjBenderscut(SCIP *scip, scip::ObjBenders *objbenders, scip::ObjBenderscut *objbenderscut, SCIP_Bool deleteobject)
Definition: objbenderscut.cpp:196
SCIP_BENDERSCUTDATA * SCIPbenderscutGetData(SCIP_BENDERSCUT *benderscut)
Definition: benderscut.c:394
scip::ObjBenderscut * SCIPfindObjBenderscut(scip::ObjBenders *objbenders, const char *name)
Definition: objbenderscut.cpp:228
static SCIP_DECL_BENDERSCUTEXITSOL(benderscutExitsolObj)
Definition: objbenderscut.cpp:156
static SCIP_DECL_BENDERSCUTCOPY(benderscutCopyObj)
Definition: objbenderscut.cpp:53
static SCIP_DECL_BENDERSCUTEXEC(benderscutExecObj)
Definition: objbenderscut.cpp:173
Definition: objbenders.h:33