Expand description
TspEngine: DemoEngine Implementation for TSP Demos
Per specification SIMULAR-DEMO-002: This module provides the unified
DemoEngine implementation for Traveling Salesman Problem simulations.
§Architecture
YAML Config → TspEngine → DemoEngine trait
↓
TspState (serializable, PartialEq)
↓
TUI / WASM (identical states)§Key Invariant
Given same YAML config and seed, TUI and WASM produce identical state sequences.
Structs§
- Simulation
Config - Simulation type configuration.
- TspConfig
- Complete TSP configuration from YAML (extends
TspInstanceYaml). - TspEngine
- Unified TSP engine implementing
DemoEngine. - TspState
- TSP state snapshot.
- TspStep
Result - Step result for TSP simulation.