methods for the inclusion and access of statistics tables
Functions | |
SCIP_TABLEDATA * | SCIPtableGetData (SCIP_TABLE *table) |
void | SCIPtableSetData (SCIP_TABLE *table, SCIP_TABLEDATA *tabledata) |
const char * | SCIPtableGetName (SCIP_TABLE *table) |
const char * | SCIPtableGetDesc (SCIP_TABLE *table) |
int | SCIPtableGetPosition (SCIP_TABLE *table) |
SCIP_STAGE | SCIPtableGetEarliestStage (SCIP_TABLE *table) |
SCIP_Bool | SCIPtableIsActive (SCIP_TABLE *table) |
SCIP_Bool | SCIPtableIsInitialized (SCIP_TABLE *table) |
SCIP_RETCODE | SCIPincludeTable (SCIP *scip, 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) |
SCIP_TABLE * | SCIPfindTable (SCIP *scip, const char *name) |
SCIP_TABLE ** | SCIPgetTables (SCIP *scip) |
int | SCIPgetNTables (SCIP *scip) |
SCIP_TABLEDATA* SCIPtableGetData | ( | SCIP_TABLE * | table | ) |
gets user data of statistics table
table | statistics table |
Definition at line 241 of file table.c.
References SCIP_Table::tabledata.
Referenced by SCIP_DECL_TABLECOPY(), SCIP_DECL_TABLEEXIT(), SCIP_DECL_TABLEEXITSOL(), SCIP_DECL_TABLEFREE(), SCIP_DECL_TABLEINIT(), SCIP_DECL_TABLEINITSOL(), SCIP_DECL_TABLEOUTPUT(), SCIPfindObjTable(), and SCIPgetObjTable().
void SCIPtableSetData | ( | SCIP_TABLE * | table, |
SCIP_TABLEDATA * | tabledata | ||
) |
sets user data of statistics table; user has to free old data in advance!
table | statistics table |
tabledata | new statistics table user data |
Definition at line 251 of file table.c.
References SCIP_Table::tabledata.
Referenced by SCIP_DECL_TABLEFREE().
const char* SCIPtableGetName | ( | SCIP_TABLE * | table | ) |
gets name of statistics table
table | statistics table |
Definition at line 262 of file table.c.
References SCIP_Table::name.
Referenced by SCIP_DECL_TABLECOPY(), SCIPsetIncludeDisp(), and SCIPtableCopyInclude().
const char* SCIPtableGetDesc | ( | SCIP_TABLE * | table | ) |
gets description of statistics table
table | statistics table |
Definition at line 272 of file table.c.
References SCIP_Table::desc.
int SCIPtableGetPosition | ( | SCIP_TABLE * | table | ) |
gets position of statistics table
table | statistics table |
Definition at line 282 of file table.c.
References SCIP_Table::position.
Referenced by SCIP_DECL_SORTPTRCOMP().
SCIP_STAGE SCIPtableGetEarliestStage | ( | SCIP_TABLE * | table | ) |
gets earliest stage of statistics table
table | statistics table |
Definition at line 292 of file table.c.
References SCIP_Table::earlieststage.
Referenced by SCIPprintStatistics().
SCIP_Bool SCIPtableIsActive | ( | SCIP_TABLE * | table | ) |
is statistics table currently active?
table | statistics table |
Definition at line 302 of file table.c.
References SCIP_Table::active.
Referenced by SCIPprintStatistics().
SCIP_Bool SCIPtableIsInitialized | ( | SCIP_TABLE * | table | ) |
is statistics table initialized?
table | statistics table |
Definition at line 312 of file table.c.
References SCIP_Table::initialized.
Referenced by SCIPsetSortBranchrules().
SCIP_RETCODE SCIPincludeTable | ( | SCIP * | scip, |
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 and includes it in SCIP
scip | SCIP data structure |
name | name of statistics table |
desc | description of statistics table |
active | should the table be activated by default? |
tabledata | statistics table data |
position | position of statistics table |
earlieststage | output of the statistics table is only printed from this stage onwards |
Definition at line 9452 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::messagehdlr, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPfindTable(), SCIPsetIncludeTable(), SCIPtableCreate(), Scip::set, SCIP_Mem::setmem, and TRUE.
Referenced by SCIPincludeHeurAlns(), SCIPincludeObjTable(), SCIPincludePropOrbitalfixing(), and SCIPincludeTableDefault().
SCIP_TABLE* SCIPfindTable | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the statistics table of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of statistics table |
Definition at line 9490 of file scip.c.
References SCIPsetFindTable(), and Scip::set.
Referenced by SCIP_DECL_TABLECOPY(), SCIPfindObjTable(), SCIPincludeHeurAlns(), SCIPincludeTable(), and SCIPincludeTableDefault().
SCIP_TABLE** SCIPgetTables | ( | SCIP * | scip | ) |
returns the array of currently available statistics tables
scip | SCIP data structure |
Definition at line 9503 of file scip.c.
References Scip::set, and SCIP_Set::tables.
Referenced by SCIPprintStatistics().
int SCIPgetNTables | ( | SCIP * | scip | ) |
returns the number of currently available statistics tables
scip | SCIP data structure |
Definition at line 9514 of file scip.c.
References SCIP_Set::ntables, and Scip::set.
Referenced by SCIPprintStatistics().