event_relaxsol.c
Go to the documentation of this file.
29 * @brief eventhandler to update the relaxation solution in the original problem when the master LP has been solved
33 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
43 #define EVENTHDLR_DESC "eventhandler to update the relaxation solution in the original problem when the master LP has been solved"
89 /* notify SCIP that your event handler wants to react on the event type lp solved and solution found */
90 SCIP_CALL( SCIPcatchEvent(scip, SCIP_EVENTTYPE_LPSOLVED | SCIP_EVENTTYPE_SOLFOUND, eventhdlr, NULL, NULL) );
101 /* notify SCIP that your event handler wants to drop the event type lp solved and solution found */
102 SCIP_CALL( SCIPdropEvent(scip, SCIP_EVENTTYPE_LPSOLVED | SCIP_EVENTTYPE_SOLFOUND, eventhdlr, NULL, -1) );
121 /* Only transfer the master solution if it is an LP solution or if it is a feasible solution that
122 * comes from a master heuristic; otherwise it is assumed to already come from the original problem
124 if( (SCIPeventGetType(event) & SCIP_EVENTTYPE_SOLFOUND) && SCIPsolGetHeur(SCIPeventGetSol(event)) == NULL
141 SCIPdebugMessage("Master feasible solution found by <%s> -- transferring to original problem\n",
194 /* the relaxation solution event handler is not included if BENDERS or ORIGINAL mode is used. As such, it will
197 if( GCGgetDecompositionMode(scip) == DEC_DECMODE_BENDERS || GCGgetDecompositionMode(scip) == DEC_DECMODE_ORIGINAL )
GCG interface methods.
Definition: event_mastersol.c:51
GCG variable pricer.
SCIP_RETCODE GCGrelaxUpdateCurrentSol(SCIP *scip)
Definition: relax_gcg.c:4796
SCIP_Bool GCGeventhdlrRelaxsolIsTriggered(SCIP *scip, SCIP *masterprob)
Definition: event_relaxsol.c:183
SCIP_Bool GCGeventhdlrMastersolIsTriggered(SCIP *scip)
Definition: event_mastersol.c:187
SCIP_RETCODE GCGtransformMastersolToOrigsol(SCIP *scip, SCIP_SOL *mastersol, SCIP_SOL **origsol)
Definition: misc.c:120
SCIP_RETCODE SCIPincludeEventHdlrRelaxsol(SCIP *scip)
Definition: event_relaxsol.c:157
eventhdlr to transfer solutions found in the original problem to the master problem
eventhandler to update the relaxation solution in the original problem when the master LP has been so...
GCG relaxator.