Scippy

SCIP

Solving Constraint Integer Programs

event_bestsol.c File Reference

Detailed Description

eventhdlr for best solution found

Author
Gerald Gamrath
Daniel Rehfeldt

Event handler for printing DIMACS solution file.

Definition in file event_bestsol.c.

#include "event_bestsol.h"
#include "probdata_stp.h"
#include "grph.h"
#include <string.h>

Go to the source code of this file.

Macros

#define EVENTHDLR_NAME   "bestsol"
 
#define EVENTHDLR_DESC   "event handler for best solutions found"
 

Functions

static SCIP_DECL_EVENTCOPY (eventCopyBestsol)
 
static SCIP_DECL_EVENTINIT (eventInitBestsol)
 
static SCIP_DECL_EVENTEXIT (eventExitBestsol)
 
static SCIP_DECL_EVENTEXEC (eventExecBestsol)
 
SCIP_RETCODE SCIPincludeEventHdlrBestsol (SCIP *scip)
 

Macro Definition Documentation

◆ EVENTHDLR_NAME

#define EVENTHDLR_NAME   "bestsol"

◆ EVENTHDLR_DESC

#define EVENTHDLR_DESC   "event handler for best solutions found"

Definition at line 33 of file event_bestsol.c.

Referenced by SCIPincludeEventHdlrBestsol().

Function Documentation

◆ SCIP_DECL_EVENTCOPY()

static SCIP_DECL_EVENTCOPY ( eventCopyBestsol  )
static

copy method for event handler plugins (called when SCIP copies plugins)

Definition at line 37 of file event_bestsol.c.

References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrGetName(), and SCIPincludeEventHdlrBestsol().

◆ SCIP_DECL_EVENTINIT()

static SCIP_DECL_EVENTINIT ( eventInitBestsol  )
static

initialization method of event handler (called after problem was transformed)

Definition at line 51 of file event_bestsol.c.

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

◆ SCIP_DECL_EVENTEXIT()

static SCIP_DECL_EVENTEXIT ( eventExitBestsol  )
static

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

Definition at line 65 of file event_bestsol.c.

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

◆ SCIP_DECL_EVENTEXEC()

◆ SCIPincludeEventHdlrBestsol()

SCIP_RETCODE SCIPincludeEventHdlrBestsol ( SCIP scip)

includes event handler for best solution found

Parameters
scipSCIP data structure

Definition at line 108 of file event_bestsol.c.

Referenced by runShell(), and SCIP_DECL_EVENTCOPY().