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 "scip/event_softtimelimit.h"
#include "scip/pub_event.h"
#include "scip/pub_message.h"
#include "scip/scip_event.h"
#include "scip/scip_mem.h"
#include "scip/scip_message.h"
#include "scip/scip_numerics.h"
#include "scip/scip_param.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 34 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 54 of file event_softtimelimit.c.

References EVENTHDLR_NAME, NULL, 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 70 of file event_softtimelimit.c.

References EVENTHDLR_NAME, NULL, 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 92 of file event_softtimelimit.c.

References EVENTHDLR_NAME, NULL, 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 114 of file event_softtimelimit.c.

References EVENTHDLR_NAME, NULL, 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)