methods for node selector plugin management
Modules | |
PublicBanditAlgorithms | |
const char* SCIPnodeselGetName | ( | SCIP_NODESEL * | nodesel | ) |
gets name of node selector
nodesel | node selector |
Definition at line 1001 of file nodesel.c.
References SCIP_Nodesel::name.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIP_DECL_NODESELCOMP(), SCIP_DECL_NODESELCOPY(), SCIP_DECL_NODESELFREE(), SCIP_DECL_NODESELINITSOL(), SCIP_DECL_NODESELSELECT(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPnodeselCopyInclude(), SCIPsetIncludeEventhdlr(), and SCIPtreeSetNodesel().
const char* SCIPnodeselGetDesc | ( | SCIP_NODESEL * | nodesel | ) |
gets description of node selector
nodesel | node selector |
Definition at line 1011 of file nodesel.c.
References SCIP_Nodesel::desc.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
int SCIPnodeselGetStdPriority | ( | SCIP_NODESEL * | nodesel | ) |
gets priority of node selector in standard mode
nodesel | node selector |
Definition at line 1021 of file nodesel.c.
References SCIP_Nodesel::stdpriority.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIP_DECL_NODESELINITSOL(), SCIPsetIncludeNodesel(), and turnoffNodeSelector().
int SCIPnodeselGetMemsavePriority | ( | SCIP_NODESEL * | nodesel | ) |
gets priority of node selector in memory saving mode
nodesel | node selector |
Definition at line 1045 of file nodesel.c.
References SCIP_Nodesel::memsavepriority.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_NODESELDATA* SCIPnodeselGetData | ( | SCIP_NODESEL * | nodesel | ) |
gets user data of node selector
nodesel | node selector |
Definition at line 1069 of file nodesel.c.
References SCIP_Nodesel::nodeseldata.
Referenced by SCIP_DECL_NODESELCOMP(), SCIP_DECL_NODESELCOPY(), SCIP_DECL_NODESELEXIT(), SCIP_DECL_NODESELEXITSOL(), SCIP_DECL_NODESELFREE(), SCIP_DECL_NODESELINIT(), SCIP_DECL_NODESELINITSOL(), SCIP_DECL_NODESELSELECT(), SCIPfindObjNodesel(), and SCIPgetObjNodesel().
void SCIPnodeselSetData | ( | SCIP_NODESEL * | nodesel, |
SCIP_NODESELDATA * | nodeseldata | ||
) |
sets user data of node selector; user has to free old data in advance!
nodesel | node selector |
nodeseldata | new node selector user data |
Definition at line 1079 of file nodesel.c.
References SCIP_Nodesel::nodeseldata.
Referenced by SCIP_DECL_NODESELFREE().
SCIP_Bool SCIPnodeselIsInitialized | ( | SCIP_NODESEL * | nodesel | ) |
is node selector initialized?
nodesel | node selector |
Definition at line 1158 of file nodesel.c.
References SCIP_Nodesel::initialized.
Referenced by SCIPsetSortComprs().
SCIP_Real SCIPnodeselGetSetupTime | ( | SCIP_NODESEL * | nodesel | ) |
gets time in seconds used in this node selector for setting up for next stages
nodesel | node selector |
Definition at line 1180 of file nodesel.c.
References SCIPclockGetTime(), and SCIP_Nodesel::setuptime.
SCIP_Real SCIPnodeselGetTime | ( | SCIP_NODESEL * | nodesel | ) |
gets time in seconds used in this node selector
nodesel | node selector |
Definition at line 1190 of file nodesel.c.
References SCIP_Nodesel::nodeseltime, and SCIPclockGetTime().
SCIP_RETCODE SCIPincludeNodesel | ( | SCIP * | scip, |
const char * | name, | ||
const char * | desc, | ||
int | stdpriority, | ||
int | memsavepriority, | ||
SCIP_DECL_NODESELCOPY((*nodeselcopy)) | , | ||
SCIP_DECL_NODESELFREE((*nodeselfree)) | , | ||
SCIP_DECL_NODESELINIT((*nodeselinit)) | , | ||
SCIP_DECL_NODESELEXIT((*nodeselexit)) | , | ||
SCIP_DECL_NODESELINITSOL((*nodeselinitsol)) | , | ||
SCIP_DECL_NODESELEXITSOL((*nodeselexitsol)) | , | ||
SCIP_DECL_NODESELSELECT((*nodeselselect)) | , | ||
SCIP_DECL_NODESELCOMP((*nodeselcomp)) | , | ||
SCIP_NODESELDATA * | nodeseldata | ||
) |
creates a node selector and includes it in SCIP.
scip | SCIP data structure |
name | name of node selector |
desc | description of node selector |
stdpriority | priority of the node selector in standard mode |
memsavepriority | priority of the node selector in memory saving mode |
nodeseldata | node selector data |
Definition at line 8781 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::messagehdlr, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPfindNodesel(), SCIPnodeselCreate(), SCIPsetIncludeNodesel(), Scip::set, SCIP_Mem::setmem, and TRUE.
Referenced by SCIPincludeObjNodesel().
SCIP_RETCODE SCIPincludeNodeselBasic | ( | SCIP * | scip, |
SCIP_NODESEL ** | nodesel, | ||
const char * | name, | ||
const char * | desc, | ||
int | stdpriority, | ||
int | memsavepriority, | ||
SCIP_DECL_NODESELSELECT((*nodeselselect)) | , | ||
SCIP_DECL_NODESELCOMP((*nodeselcomp)) | , | ||
SCIP_NODESELDATA * | nodeseldata | ||
) |
Creates a node selector and includes it in SCIP with its most fundamental callbacks. All non-fundamental (or optional) callbacks as, e.g., init and exit callbacks, will be set to NULL. Optional callbacks can be set via specific setter functions, see SCIPsetNodeselCopy(), SCIPsetNodeselFree(), SCIPsetNodeselInit(), SCIPsetNodeselExit(), SCIPsetNodeselInitsol(), and SCIPsetNodeselExitsol()
scip | SCIP data structure |
nodesel | reference to a node selector, or NULL |
name | name of node selector |
desc | description of node selector |
stdpriority | priority of the node selector in standard mode |
memsavepriority | priority of the node selector in memory saving mode |
nodeseldata | node selector data |
Definition at line 8825 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::messagehdlr, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPfindNodesel(), SCIPnodeselCreate(), SCIPsetIncludeNodesel(), Scip::set, SCIP_Mem::setmem, and TRUE.
Referenced by SCIPincludeNodeselBfs(), SCIPincludeNodeselBreadthfirst(), SCIPincludeNodeselDfs(), SCIPincludeNodeselEstimate(), SCIPincludeNodeselHybridestim(), SCIPincludeNodeselRestartdfs(), and SCIPincludeNodeselUct().
SCIP_RETCODE SCIPsetNodeselCopy | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
SCIP_DECL_NODESELCOPY((*nodeselcopy)) | |||
) |
sets copy method of node selector
scip | SCIP data structure |
nodesel | node selector |
Definition at line 8861 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnodeselSetCopy(), and TRUE.
Referenced by SCIPincludeNodeselBfs(), SCIPincludeNodeselBreadthfirst(), SCIPincludeNodeselDfs(), SCIPincludeNodeselEstimate(), SCIPincludeNodeselHybridestim(), SCIPincludeNodeselRestartdfs(), and SCIPincludeNodeselUct().
SCIP_RETCODE SCIPsetNodeselFree | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
SCIP_DECL_NODESELFREE((*nodeselfree)) | |||
) |
sets destructor method of node selector
scip | SCIP data structure |
nodesel | node selector |
Definition at line 8877 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnodeselSetFree(), and TRUE.
Referenced by SCIPincludeNodeselBfs(), SCIPincludeNodeselEstimate(), SCIPincludeNodeselHybridestim(), SCIPincludeNodeselRestartdfs(), and SCIPincludeNodeselUct().
SCIP_RETCODE SCIPsetNodeselInit | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
SCIP_DECL_NODESELINIT((*nodeselinit)) | |||
) |
sets initialization method of node selector
scip | SCIP data structure |
nodesel | node selector |
Definition at line 8893 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnodeselSetInit(), and TRUE.
SCIP_RETCODE SCIPsetNodeselExit | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
SCIP_DECL_NODESELEXIT((*nodeselexit)) | |||
) |
sets deinitialization method of node selector
scip | SCIP data structure |
nodesel | node selector |
Definition at line 8909 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnodeselSetExit(), and TRUE.
SCIP_RETCODE SCIPsetNodeselInitsol | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
SCIP_DECL_NODESELINITSOL((*nodeselinitsol)) | |||
) |
sets solving process initialization method of node selector
scip | SCIP data structure |
nodesel | node selector |
Definition at line 8925 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnodeselSetInitsol(), and TRUE.
Referenced by SCIPincludeNodeselRestartdfs(), and SCIPincludeNodeselUct().
SCIP_RETCODE SCIPsetNodeselExitsol | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
SCIP_DECL_NODESELEXITSOL((*nodeselexitsol)) | |||
) |
sets solving process deinitialization method of node selector
scip | SCIP data structure |
nodesel | node selector |
Definition at line 8941 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnodeselSetExitsol(), and TRUE.
Referenced by SCIPincludeNodeselUct().
SCIP_NODESEL* SCIPfindNodesel | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the node selector of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of node selector |
Definition at line 8957 of file scip.c.
References SCIPsetFindNodesel(), and Scip::set.
Referenced by doSolveSubMIP(), SCIPfindObjNodesel(), SCIPincludeNodesel(), SCIPincludeNodeselBasic(), setSubscipParameters(), setupAndSolve(), setupAndSolveSubscip(), setupAndSolveSubscipCrossover(), setupAndSolveSubscipLocalbranching(), setupAndSolveSubscipMutation(), setupSCIPparamsStage3(), setupSubproblem(), setupSubScip(), wrapperDins(), and wrapperRins().
SCIP_NODESEL** SCIPgetNodesels | ( | SCIP * | scip | ) |
returns the array of currently available node selectors
scip | SCIP data structure |
Definition at line 8970 of file scip.c.
References SCIP_Set::nodesels, and Scip::set.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), and turnoffNodeSelector().
int SCIPgetNNodesels | ( | SCIP * | scip | ) |
returns the number of currently available node selectors
scip | SCIP data structure |
Definition at line 8981 of file scip.c.
References SCIP_Set::nnodesels, and Scip::set.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), and turnoffNodeSelector().
SCIP_RETCODE SCIPsetNodeselStdPriority | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
int | priority | ||
) |
sets the priority of a node selector in standard mode
scip | SCIP data structure |
nodesel | node selector |
priority | new standard priority of the node selector |
Definition at line 8992 of file scip.c.
References SCIP_OKAY, SCIPnodeselSetStdPriority(), and Scip::set.
Referenced by SCIP_DECL_NODESELEXITSOL(), SCIP_DECL_PARAMCHGD(), and turnoffNodeSelector().
SCIP_RETCODE SCIPsetNodeselMemsavePriority | ( | SCIP * | scip, |
SCIP_NODESEL * | nodesel, | ||
int | priority | ||
) |
sets the priority of a node selector in memory saving mode
scip | SCIP data structure |
nodesel | node selector |
priority | new memory saving priority of the node selector |
Definition at line 9007 of file scip.c.
References SCIP_OKAY, SCIPnodeselSetMemsavePriority(), and Scip::set.
Referenced by SCIP_DECL_PARAMCHGD().
SCIP_NODESEL* SCIPgetNodesel | ( | SCIP * | scip | ) |
returns the currently used node selector
scip | SCIP data structure |
Definition at line 9022 of file scip.c.
References SCIPsetGetNodesel(), Scip::set, and Scip::stat.