methods and datastructures for displaying statistics tables
Definition in file table.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/table.h"#include "scip/pub_message.h"#include "scip/pub_misc.h"#include "scip/syncstore.h"#include "scip/struct_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
| table | statistics table |
| set | SCIP_SET of SCIP to copy to |
Definition at line 45 of file table.c.
References SCIP_CALL, SCIP_OKAY, SCIPsetDebugMsg, and SCIPtableGetName().
| 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_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? |
| 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 63 of file table.c.
References active, BMSallocMemory, BMSduplicateMemoryArray, FALSE, SCIP_ALLOC, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPsetAddBoolParam(), and SCIPsnprintf().
Referenced by SCIPincludeTable().
| 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 117 of file table.c.
References BMSfreeMemory, BMSfreeMemoryArray, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPsetFree().
| SCIP_RETCODE SCIPtableInit | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set | ||
| ) |
initializes statistics table
| table | statistics table |
| set | global SCIP settings |
Definition at line 141 of file table.c.
References SCIP_Table::initialized, SCIP_Table::name, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, and TRUE.
Referenced by SCIPsetInitPlugins().
| SCIP_RETCODE SCIPtableExit | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set | ||
| ) |
deinitializes statistics table
| table | statistics table |
| set | global SCIP settings |
Definition at line 165 of file table.c.
References FALSE, SCIP_Table::initialized, SCIP_Table::name, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, and SCIPerrorMessage.
Referenced by SCIPsetExitPlugins().
| 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 189 of file table.c.
References SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPsetInitsolPlugins().
| 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 207 of file table.c.
References SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPsetExitsolPlugins().
| SCIP_RETCODE SCIPtableOutput | ( | SCIP_TABLE * | table, |
| SCIP_SET * | set, | ||
| FILE * | file | ||
| ) |
output statistics table to screen
| table | statistics table |
| set | global SCIP settings |
| file | output file (or NULL for standard output) |
Definition at line 225 of file table.c.
References SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPprintStatistics().