Scippy

SCIP

Solving Constraint Integer Programs

event_softtimelimit.c File Reference

Detailed Description

eventhdlr for soft time limit

Author
Gerald Gamrath

Definition in file event_softtimelimit.c.

#include "event_softtimelimit.h"
#include <string.h>

Go to the source code of this file.

Macros

#define EVENTHDLR_NAME   "softtimelimit"
 
#define EVENTHDLR_DESC   "event handler for soft time limit"
 

Functions

static SCIP_DECL_EVENTCOPY (eventCopySofttimelimit)
 
static SCIP_DECL_EVENTFREE (eventFreeSofttimelimit)
 
static SCIP_DECL_EVENTINIT (eventInitSofttimelimit)
 
static SCIP_DECL_EVENTEXIT (eventExitSofttimelimit)
 
static SCIP_DECL_EVENTEXEC (eventExecSofttimelimit)
 
SCIP_RETCODE SCIPincludeEventHdlrSofttimelimit (SCIP *scip)
 

Macro Definition Documentation

◆ EVENTHDLR_NAME

◆ EVENTHDLR_DESC

#define EVENTHDLR_DESC   "event handler for soft time limit"

Definition at line 28 of file event_softtimelimit.c.

Referenced by SCIPincludeEventHdlrSofttimelimit().

Function Documentation

◆ SCIP_DECL_EVENTCOPY()

static SCIP_DECL_EVENTCOPY ( eventCopySofttimelimit  )
static

copy method for event handler plugins (called when SCIP copies plugins) ! [SnippetEventCopySofttimelimit]

Definition at line 48 of file event_softtimelimit.c.

References EVENTHDLR_NAME, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrGetName(), and SCIPincludeEventHdlrSofttimelimit().

◆ SCIP_DECL_EVENTFREE()

static SCIP_DECL_EVENTFREE ( eventFreeSofttimelimit  )
static

! [SnippetEventCopySofttimelimit] destructor of event handler to free user data (called when SCIP is exiting) ! [SnippetEventFreeSofttimelimit]

Definition at line 64 of file event_softtimelimit.c.

References EVENTHDLR_NAME, SCIP_OKAY, SCIPeventhdlrGetData(), SCIPeventhdlrGetName(), SCIPeventhdlrSetData(), and SCIPfreeBlockMemory.

◆ SCIP_DECL_EVENTINIT()

static SCIP_DECL_EVENTINIT ( eventInitSofttimelimit  )
static

! [SnippetEventFreeSofttimelimit] initialization method of event handler (called after problem was transformed)

Definition at line 86 of file event_softtimelimit.c.

References EVENTHDLR_NAME, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIPcatchEvent(), SCIPeventhdlrGetData(), SCIPeventhdlrGetName(), and SCIPisNegative().

◆ SCIP_DECL_EVENTEXIT()

static SCIP_DECL_EVENTEXIT ( eventExitSofttimelimit  )
static

deinitialization method of event handler (called before transformed problem is freed)

Definition at line 108 of file event_softtimelimit.c.

References EVENTHDLR_NAME, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIPdropEvent(), SCIPeventhdlrGetData(), and SCIPeventhdlrGetName().

◆ SCIP_DECL_EVENTEXEC()

static SCIP_DECL_EVENTEXEC ( eventExecSofttimelimit  )
static

◆ SCIPincludeEventHdlrSofttimelimit()

SCIP_RETCODE SCIPincludeEventHdlrSofttimelimit ( SCIP scip)