nodesel_breadthfirst.c
Go to the documentation of this file.
22 * This node selector performs breadth-first search, i.e., it completely evaluates an entire level of the search tree before 23 * proceeding to the next level. At one level, nodes are processed in the order they were created by the branching rule. 26 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/ 66 /* siblings come before leaves at the same level. Sometimes it can occur that no leaves are left except for children */ 76 SCIPdebugMessage("Selecting next node number %" SCIP_LONGINT_FORMAT " at depth %d\n", SCIPnodeGetNumber(*selnode), SCIPnodeGetDepth(*selnode)); 83 /** node comparison method of breadth first search: nodes with lower depth are preferred; in case of a tie, the node 136 SCIP_CALL( SCIPincludeNodeselBasic(scip, &nodesel, NODESEL_NAME, NODESEL_DESC, NODESEL_STDPRIORITY, NODESEL_MEMSAVEPRIORITY, Definition: struct_nodesel.h:51 Definition: struct_scip.h:53 SCIP_RETCODE SCIPsetNodeselCopy(SCIP *scip, SCIP_NODESEL *nodesel, SCIP_DECL_NODESELCOPY((*nodeselcopy))) Definition: scip.c:8028 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) Definition: scip.c:7992 Definition: type_retcode.h:33 static SCIP_DECL_NODESELSELECT(nodeselSelectBreadthfirst) Definition: nodesel_breadthfirst.c:59 static SCIP_DECL_NODESELCOPY(nodeselCopyBreadthfirst) Definition: nodesel_breadthfirst.c:45 static SCIP_DECL_NODESELCOMP(nodeselCompBreadthfirst) Definition: nodesel_breadthfirst.c:86 SCIP_RETCODE SCIPincludeNodeselBreadthfirst(SCIP *scip) Definition: nodesel_breadthfirst.c:125 Definition: objbranchrule.h:33 node selector for breadth-first search |