GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
event_solvingstats.c File Reference

Detailed Description

eventhdlr for writing various types of information during the solving process

Author
Gerald Gamrath

If the filename is specified, a file is created and the eventhandler is installed to catch all events announcing that a node was solved or that a new best solution was found. Whenever one of these things happens, a line is printed to the file with the following information: 1) solving time 2) number of processed nodes (including the current node) 3) number of open nodes 4) number of LP iterations 5) number of variables in the master problem 6) current global dual bound 7) current primal bound

Definition in file event_solvingstats.c.

#include "gcg/event_solvingstats.h"
#include "gcg/pricer_gcg.h"
#include <string.h>

Go to the source code of this file.

Data Structures

struct  SCIP_EventhdlrData

Macros

#define EVENTHDLR_NAME   "solvingstats"
#define EVENTHDLR_DESC   "event handler for best solutions found"
#define DEFAULT_FILENAME   ""

Functions

static SCIP_DECL_EVENTFREE (eventFreeSolvingstats)
static SCIP_DECL_EVENTINIT (eventInitSolvingstats)
static SCIP_DECL_EVENTEXIT (eventExitSolvingstats)
static SCIP_DECL_EVENTEXEC (eventExecSolvingstats)
SCIP_RETCODE GCGincludeEventHdlrSolvingstats (GCG *gcg)

Macro Definition Documentation

◆ EVENTHDLR_NAME

#define EVENTHDLR_NAME   "solvingstats"

Definition at line 51 of file event_solvingstats.c.

◆ EVENTHDLR_DESC

#define EVENTHDLR_DESC   "event handler for best solutions found"

Definition at line 52 of file event_solvingstats.c.

◆ DEFAULT_FILENAME

#define DEFAULT_FILENAME   ""

filename to write to

Definition at line 54 of file event_solvingstats.c.

Referenced by GCGincludeEventHdlrSolvingstats().

Function Documentation

◆ SCIP_DECL_EVENTFREE()

SCIP_DECL_EVENTFREE ( eventFreeSolvingstats )
static

destructor of event handler to free user data (called when SCIP is exiting)

Definition at line 70 of file event_solvingstats.c.

References assert(), SCIP_EventhdlrData::file, and SCIPfreeMemory().

◆ SCIP_DECL_EVENTINIT()

SCIP_DECL_EVENTINIT ( eventInitSolvingstats )
static

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

Definition at line 88 of file event_solvingstats.c.

References assert(), EVENTHDLR_NAME, SCIP_EventhdlrData::file, SCIP_EventhdlrData::filename, SCIP_EventhdlrData::origprob, and SCIP_CALL().

◆ SCIP_DECL_EVENTEXIT()

SCIP_DECL_EVENTEXIT ( eventExitSolvingstats )
static

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

Definition at line 123 of file event_solvingstats.c.

References assert(), EVENTHDLR_NAME, SCIP_EventhdlrData::file, and SCIP_CALL().

◆ SCIP_DECL_EVENTEXEC()

SCIP_DECL_EVENTEXEC ( eventExecSolvingstats )
static

execution method of event handler

Definition at line 149 of file event_solvingstats.c.

References assert(), EVENTHDLR_NAME, SCIP_EventhdlrData::file, SCIP_EventhdlrData::origprob, and SCIPdebugMessage().

◆ GCGincludeEventHdlrSolvingstats()