Skip to main content

Module tsp_engine

Module tsp_engine 

Source
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§

SimulationConfig
Simulation type configuration.
TspConfig
Complete TSP configuration from YAML (extends TspInstanceYaml).
TspEngine
Unified TSP engine implementing DemoEngine.
TspState
TSP state snapshot.
TspStepResult
Step result for TSP simulation.