Expand description
Constraint satisfaction and optimization solvers.
Provides Backtracking with MRV heuristics, Branch & Bound, Local Search, LNS, and Parallel Portfolio search.
Re-exports§
pub use backtracking::BacktrackingSolver;pub use branch_and_bound::BranchAndBoundSolver;pub use cancellation::SearchStatistics;pub use lns::LnsSolver;pub use local_search::LocalSearchSolver;pub use parallel::ParallelSolver;
Modules§
- backtracking
- Backtracking CSP solver with
dom/wdegvariable ordering and AC-3 constraint propagation. - branch_
and_ bound - Branch and Bound optimization solver for Constraint Optimization Problems (COP).
- cancellation
- Search cancellation tokens and runtime execution statistics.
- lns
- Large Neighborhood Search (LNS) solver combining heuristic destroy and exact repair phases.
- local_
search - Local Search solver combining conflict-directed (min-conflicts) repair with Tabu Search memory and incremental scoring.
- parallel
- Parallel Multi-Threaded Portfolio Solver.
- shared_
incumbent - Thread-safe shared incumbent for portfolio search coordination.
Structs§
- Cancellation
Token - Thread-safe cancellation handle allowing external interruption of running solvers.
- Solution
- A candidate solution: a complete variable assignment and its score.
- Solve
Outcome - Outcome of a solver run: what was established, the best solution found (if any), search effort spent, and — where the solver tracks one — an optimistic bound on the achievable score.
- Solver
Options - Configuration options for solver execution limits and cancellation.
Enums§
- Abort
Reason - Why a search run stopped without reaching a conclusive result.
- Solve
Status - What a solver run established about the problem.