methods and datastructures for displaying runtime statistics
Definition in file disp.c.
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "scip/def.h"
#include "blockmemshell/memory.h"
#include "scip/set.h"
#include "scip/stat.h"
#include "scip/scip.h"
#include "scip/disp.h"
#include "scip/pub_message.h"
#include "scip/pub_misc.h"
#include "scip/syncstore.h"
#include "scip/struct_disp.h"
Go to the source code of this file.
Macros | |
#define | MAXDECPOWER 6 |
#define | MAXTIMEPOWER 4 |
Variables | |
static const char | decpowerchar [] = {' ', 'k', 'M', 'G', 'T', 'P', 'E'} |
static const char | timepowerchar [] = {'s', 'm', 'h', 'd', 'y'} |
const SCIP_Real | timepowerval [] = {1.0, 60.0, 60.0, 24.0, 365.0} |
#define MAXDECPOWER 6 |
Definition at line 526 of file disp.c.
Referenced by SCIPdispLongint().
#define MAXTIMEPOWER 4 |
Definition at line 589 of file disp.c.
Referenced by SCIPdispTime().
SCIP_DECL_PARAMCHGD | ( | SCIPparamChgdDispActive | ) |
parameter change information method to autoselect display columns again
Definition at line 46 of file disp.c.
References SCIP_CALL, SCIP_OKAY, and SCIPautoselectDisps().
SCIP_RETCODE SCIPdispCopyInclude | ( | SCIP_DISP * | disp, |
SCIP_SET * | set | ||
) |
copies the given display to a new scip
disp | display column |
set | SCIP_SET of SCIP to copy to |
Definition at line 55 of file disp.c.
References SCIP_CALL, SCIP_OKAY, SCIPdispGetName(), and SCIPsetDebugMsg.
SCIP_RETCODE SCIPdispCreate | ( | SCIP_DISP ** | disp, |
SCIP_SET * | set, | ||
SCIP_MESSAGEHDLR * | messagehdlr, | ||
BMS_BLKMEM * | blkmem, | ||
const char * | name, | ||
const char * | desc, | ||
const char * | header, | ||
SCIP_DISPSTATUS | dispstatus, | ||
SCIP_DECL_DISPCOPY((*dispcopy)) | , | ||
SCIP_DECL_DISPFREE((*dispfree)) | , | ||
SCIP_DECL_DISPINIT((*dispinit)) | , | ||
SCIP_DECL_DISPEXIT((*dispexit)) | , | ||
SCIP_DECL_DISPINITSOL((*dispinitsol)) | , | ||
SCIP_DECL_DISPEXITSOL((*dispexitsol)) | , | ||
SCIP_DECL_DISPOUTPUT((*dispoutput)) | , | ||
SCIP_DISPDATA * | dispdata, | ||
int | width, | ||
int | priority, | ||
int | position, | ||
SCIP_Bool | stripline | ||
) |
creates a display column
disp | pointer to store display column |
set | global SCIP settings |
messagehdlr | message handler |
blkmem | block memory for parameter settings |
name | name of display column |
desc | description of display column |
header | head line of display column |
dispstatus | display activation status of display column |
dispdata | display column data |
width | width of display column (no. of chars used) |
priority | priority of display column |
position | relative position of display column |
stripline | should the column be separated with a line from its right neighbor? |
Definition at line 73 of file disp.c.
References BMSallocMemory, BMSduplicateMemoryArray, FALSE, SCIP_ALLOC, SCIP_CALL, SCIP_DISPMODE_DEFAULT, SCIP_DISPSTATUS_ON, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPsetAddIntParam(), and SCIPsnprintf().
Referenced by SCIPincludeDisp().
SCIP_RETCODE SCIPdispFree | ( | SCIP_DISP ** | disp, |
SCIP_SET * | set | ||
) |
frees memory of display column
disp | pointer to display column data structure |
set | global SCIP settings |
Definition at line 137 of file disp.c.
References BMSfreeMemory, BMSfreeMemoryArray, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPsetFree().
SCIP_RETCODE SCIPdispInit | ( | SCIP_DISP * | disp, |
SCIP_SET * | set | ||
) |
initializes display column
disp | display column |
set | global SCIP settings |
Definition at line 162 of file disp.c.
References SCIP_Disp::initialized, SCIP_Disp::name, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, and TRUE.
Referenced by SCIPsetInitPlugins().
SCIP_RETCODE SCIPdispExit | ( | SCIP_DISP * | disp, |
SCIP_SET * | set | ||
) |
deinitializes display column
disp | display column |
set | global SCIP settings |
Definition at line 186 of file disp.c.
References FALSE, SCIP_Disp::initialized, SCIP_Disp::name, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, and SCIPerrorMessage.
Referenced by SCIPsetExitPlugins().
SCIP_RETCODE SCIPdispInitsol | ( | SCIP_DISP * | disp, |
SCIP_SET * | set | ||
) |
informs display column that the branch and bound process is being started
disp | display column |
set | global SCIP settings |
Definition at line 210 of file disp.c.
References SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPsetInitsolPlugins().
SCIP_RETCODE SCIPdispExitsol | ( | SCIP_DISP * | disp, |
SCIP_SET * | set | ||
) |
informs display column that the branch and bound process data is being freed
disp | display column |
set | global SCIP settings |
Definition at line 228 of file disp.c.
References SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPsetInitsolPlugins().
SCIP_RETCODE SCIPdispOutput | ( | SCIP_DISP * | disp, |
SCIP_SET * | set, | ||
FILE * | file | ||
) |
output display column to screen
disp | display column |
set | global SCIP settings |
file | output file (or NULL for standard output) |
Definition at line 246 of file disp.c.
References SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPdispPrintLine().
SCIP_RETCODE SCIPdispPrintLine | ( | SCIP_SET * | set, |
SCIP_MESSAGEHDLR * | messagehdlr, | ||
SCIP_STAT * | stat, | ||
FILE * | file, | ||
SCIP_Bool | forcedisplay, | ||
SCIP_Bool | endline | ||
) |
prints one line of output with the active display columns
set | global SCIP settings |
messagehdlr | message handler |
stat | problem statistics data |
file | output file (or NULL for standard output) |
forcedisplay | should the line be printed without regarding frequency? |
endline | should the line be terminated with a newline symbol? |
Definition at line 363 of file disp.c.
References FALSE, SCIP_Stat::lastdispnode, SCIP_Stat::ndisplines, SCIP_Stat::nnodes, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_VERBLEVEL_NORMAL, SCIPdispOutput(), and SCIPmessageFPrintInfo().
Referenced by priceAndCutLoop(), primalAddSol(), SCIPpriceLoop(), SCIPprintDisplayLine(), and SCIPsolveCIP().
|
static |
SCIP_RETCODE SCIPdispAutoActivate | ( | SCIP_SET * | set | ) |
activates all display lines fitting in the display w.r. to priority
set | global SCIP settings |
Definition at line 449 of file disp.c.
References active, BMSduplicateMemoryArray, BMSfreeMemoryArray, FALSE, SCIP_ALLOC, SCIP_DISPMODE_CONCURRENT, SCIP_DISPMODE_DEFAULT, SCIP_DISPSTATUS_AUTO, SCIP_DISPSTATUS_ON, SCIP_OKAY, SCIPgetSyncstore(), SCIPsortPtr(), SCIPsyncstoreIsInitialized(), and TRUE.
Referenced by SCIPautoselectDisps(), and SCIPsetInitPlugins().
void SCIPdispChgMode | ( | SCIP_DISP * | disp, |
SCIP_DISPMODE | mode | ||
) |
changes the display column mode
disp | display column |
mode | the display column mode |
Definition at line 516 of file disp.c.
References SCIP_Disp::mode.
Referenced by SCIPchgDispMode().
|
static |
|
static |