|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Minimal contract for branch-and-bound domains. More...
#include <Branch_And_Bound.H>
Minimal contract for branch-and-bound domains.
The engine assumes a mutable search state and reversible moves:
for_each_successor(state, visitor) lazily emits candidate moves,apply(state, move) advances the state. apply() throws, the state must remain unchanged (strong exception safety).undo(state, move) restores the previous state. undo() should not throw exceptions; it is typically called during normal backtracking or exception stack unwinding.is_complete(state) marks an accepted solution,bound(state) returns an optimistic estimate of the final objective. Definition at line 278 of file Branch_And_Bound.H.