prenew

BnB.prenew(old, new, top)[source]

Function defining what to do after finding a new optimal node and before adding it to the top.

Parameters

old(node, score)

The old node and score that got removed.

new(node, score)

The new node and score that got added.

top(list(node), np.ndarray(1d))

The old set of optimal nodes and scores, sorted by lowest score first.