Examples¶
A collection of worked examples, from minimal API demos to benchmark-grade implementations.
Quick Start¶
The quick_examples/ directory contains minimal examples (10-20 lines) for each solver:
Categories¶
| Category | Description |
|---|---|
| Quick Examples | Minimal API demos for every solver |
| Classic Problems | TSP, knapsack, VRP, bin packing, job shop |
| Puzzles | Sudoku, N-Queens, magic square, pentomino |
| Real World | Nurse scheduling, timetabling |
Running Examples¶
All examples are self-contained:
python examples/puzzles/sudoku/sudoku_solver.py
python examples/classic/tsp/tsp_anneal.py
python examples/real_world/nurse_scheduling.py
Examples print their results and explain the problem being solved.
Benchmark Data¶
All benchmark instances are from well-known open-source repositories:
- TSPLIB: Classic TSP instances
- Solomon VRPTW: Vehicle routing benchmarks
- OR-Library: Job shop scheduling
- Falkenauer: Bin packing instances
- ITC 2007: Timetabling competition