internal methods for displaying statistics tables
Definition in file table.h.
#include <stdio.h>#include "scip/def.h"#include "blockmemshell/memory.h"#include "scip/type_retcode.h"#include "scip/type_set.h"#include "scip/type_table.h"#include "scip/type_paramset.h"#include "scip/pub_table.h"Go to the source code of this file.
| SCIP_RETCODE SCIPtableCopyInclude | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set ) |
copies the given statistics table to a new scip
Definition at line 53 of file table.c.
References assert(), NULL, SCIP_CALL, SCIP_OKAY, SCIPsetDebugMsg, SCIPtableCopyInclude(), and SCIPtableGetName().
Referenced by SCIPsetCopyPlugins(), and SCIPtableCopyInclude().
| SCIP_RETCODE SCIPtableCreate | ( | SCIP_TABLE ** | table, |
| SCIP_SET * | set, | ||
| SCIP_MESSAGEHDLR * | messagehdlr, | ||
| BMS_BLKMEM * | blkmem, | ||
| const char * | name, | ||
| const char * | desc, | ||
| SCIP_Bool | active, | ||
| SCIP_DECL_TABLECOPY((*tablecopy)) | , | ||
| SCIP_DECL_TABLEFREE((*tablefree)) | , | ||
| SCIP_DECL_TABLEINIT((*tableinit)) | , | ||
| SCIP_DECL_TABLEEXIT((*tableexit)) | , | ||
| SCIP_DECL_TABLEINITSOL((*tableinitsol)) | , | ||
| SCIP_DECL_TABLEEXITSOL((*tableexitsol)) | , | ||
| SCIP_DECL_TABLEOUTPUT((*tableoutput)) | , | ||
| SCIP_DECL_TABLECOLLECT((*tablecollect)) | , | ||
| SCIP_TABLEDATA * | tabledata, | ||
| int | position, | ||
| SCIP_STAGE | earlieststage ) |
creates a statistics table
| table | pointer to store statistics table |
| set | global SCIP settings |
| messagehdlr | message handler |
| blkmem | block memory for parameter settings |
| name | name of statistics table |
| desc | description of statistics table |
| active | should the table be activated by default? |
| - | copy method of statistics table or NULL if you don't want to copy your plugin into sub-SCIPs |
| - | destructor of statistics table |
| - | initialize statistics table |
| - | deinitialize statistics table |
| - | solving process initialization method of statistics table |
| - | solving process deinitialization method of statistics table |
| - | output method |
| - | report table data as SCIP_DATATREE |
| tabledata | display statistics table |
| position | position of statistics table |
| earlieststage | output of the statistics table is only printed from this stage onwards |
Definition at line 130 of file table.c.
References assert(), doTableCreate(), NULL, SCIP_Bool, SCIP_CALL_FINALLY, SCIP_DECL_TABLECOLLECT, SCIP_DECL_TABLECOPY, SCIP_DECL_TABLEEXIT, SCIP_DECL_TABLEEXITSOL, SCIP_DECL_TABLEFREE, SCIP_DECL_TABLEINIT, SCIP_DECL_TABLEINITSOL, SCIP_DECL_TABLEOUTPUT, SCIP_OKAY, SCIPtableCreate(), and SCIPtableFree().
Referenced by SCIPincludeTable(), and SCIPtableCreate().
| SCIP_RETCODE SCIPtableFree | ( | SCIP_TABLE ** | table, |
| SCIP_SET * | set ) |
frees memory of statistics table
| table | pointer to statistics table data structure |
| set | global SCIP settings |
Definition at line 164 of file table.c.
References assert(), BMSfreeMemory, BMSfreeMemoryArrayNull, NULL, SCIP_CALL, SCIP_OKAY, and SCIPtableFree().
Referenced by SCIPtableCreate(), and SCIPtableFree().
| SCIP_RETCODE SCIPtableInit | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set ) |
initializes statistics table
| table | statistics table |
| set | global SCIP settings |
Definition at line 189 of file table.c.
References assert(), SCIP_Table::initialized, SCIP_Table::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPtableInit(), and TRUE.
Referenced by SCIPtableInit().
| SCIP_RETCODE SCIPtableExit | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set ) |
deinitializes statistics table
| table | statistics table |
| set | global SCIP settings |
Definition at line 213 of file table.c.
References assert(), FALSE, SCIP_Table::initialized, SCIP_Table::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, and SCIPtableExit().
Referenced by SCIPtableExit().
| SCIP_RETCODE SCIPtableInitsol | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set ) |
informs statistics table that the branch and bound process is being started
| table | statistics table |
| set | global SCIP settings |
Definition at line 237 of file table.c.
References assert(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPtableInitsol().
Referenced by SCIPtableInitsol().
| SCIP_RETCODE SCIPtableExitsol | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set ) |
informs statistics table that the branch and bound process data is being freed
| table | statistics table |
| set | global SCIP settings |
Definition at line 255 of file table.c.
References assert(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPtableExitsol().
Referenced by SCIPtableExitsol().
| SCIP_RETCODE SCIPtableOutput | ( | SCIP_TABLE * | table, |
| BMS_BLKMEM * | blkmem, | ||
| SCIP_SET * | set, | ||
| FILE * | file ) |
output statistics table to screen
| table | statistics table |
| blkmem | block memory |
| set | global SCIP settings |
| file | output file (or NULL for standard output) |
Definition at line 273 of file table.c.
References assert(), SCIP_Table::name, NULL, SCIP_CALL, SCIP_OKAY, SCIPdatatreeCreate(), SCIPdatatreeFree(), SCIPprintDatatreeAsTable(), SCIPtableCollect(), and SCIPtableOutput().
Referenced by SCIPprintStatistics(), and SCIPtableOutput().
| SCIP_RETCODE SCIPtableCollect | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set, | ||
| SCIP_DATATREE * | datatree ) |
collects statistics table data
| table | statistics table |
| set | global SCIP settings |
| datatree | data tree where to add table data |
Definition at line 305 of file table.c.
References assert(), SCIP_Table::desc, NULL, SCIP_CALL, SCIP_OKAY, SCIPinsertDatatreeString(), and SCIPtableCollect().
Referenced by SCIPprintStatisticsJson(), SCIPtableCollect(), and SCIPtableOutput().