feat(phase-6): implement analytics, kpi calculator, event store, heatmaps, and experiment runner
This commit is contained in:
@@ -86,13 +86,17 @@ The system decouples discrete-event simulation from 3D visualization, enabling d
|
||||
- [x] Inventory stock-out monitoring (`STOCKOUT_OCCURRED` telemetry and emergency replenishment).
|
||||
- [x] Safe task reassignment and priority preemption (`TaskReassigner`).
|
||||
- [x] OpenUSD Phase 5 3D scene (`omniverse/scenes/warehouse_phase5.usda`).
|
||||
- [x] Comprehensive unit test suite (110 passed in 0.68s).
|
||||
- [x] Comprehensive KPI calculation engine (`KPICalculator`, latency percentiles, loaded/empty distance ratios, SLA compliance).
|
||||
- [x] Structured telemetry store (`EventStore`, `events.jsonl`, `tasks.csv`, `robots.csv`, `aisle_congestion.csv`, `kpi_summary.json`).
|
||||
- [x] Spatial 2D congestion heatmaps (`CongestionHeatmapGenerator`, interactive SVG, ASCII floorplans, automated bottleneck diagnosis).
|
||||
- [x] Executive Markdown report generator (`ExperimentReportGenerator`, `report.md`).
|
||||
- [x] Experiment execution & scenario comparison framework (`ExperimentRunner`, `ScenarioComparator`, Monte Carlo multi-seed execution, fleet size sweeps).
|
||||
- [x] Comprehensive unit test suite (129 passed in 0.97s).
|
||||
|
||||
### Planned Roadmap
|
||||
- **Phase 6**: Analytics, KPI calculations, and congestion heatmaps.
|
||||
- **Phase 7**: NVIDIA Omniverse USD 3D visualization and trajectory playback.
|
||||
- **Phase 7**: NVIDIA Omniverse USD 3D visualization and trajectory playback (Planned - Next).
|
||||
- **Phase 8**: Interactive operational dashboard.
|
||||
- **Phase 9**: Optimization scenarios, fleet-size benchmarking, and final demonstration.
|
||||
- **Phase 9**: Optimization scenarios, layout variations, and final demonstration.
|
||||
|
||||
---
|
||||
|
||||
@@ -173,6 +177,24 @@ warehouse-twin export-graph --output results/reports/custom_graph.json
|
||||
pytest tests/ -v
|
||||
```
|
||||
|
||||
### Run Reproducible Experiment (Phase 6)
|
||||
```bash
|
||||
warehouse-twin run-experiment --experiment-id baseline_1hr --duration 3600 --seed 42
|
||||
```
|
||||
Generates complete telemetry in `results/experiments/baseline_1hr/`:
|
||||
- `events.jsonl`, `tasks.csv`, `robots.csv`, `aisle_congestion.csv`, `kpi_summary.json`
|
||||
- `congestion_heatmap.svg` (2D spatial interactive heatmap)
|
||||
- `report.md` (Executive summary with latency distributions and bottleneck recommendations)
|
||||
|
||||
### Run Scenario Comparisons (Phase 6)
|
||||
```bash
|
||||
# Compare fleet sizing across 2, 4, 6, and 8 AMRs:
|
||||
warehouse-twin compare-scenarios --scenario-type fleet_size --fleet-sizes 2 4 6 8 --duration 3600
|
||||
|
||||
# Benchmark dispatching heuristics under identical workloads:
|
||||
warehouse-twin compare-scenarios --scenario-type dispatch_policy --policies priority_nearest_idle nearest_idle balanced_utilization --duration 3600
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 8. Low-Disk-Space Protection
|
||||
|
||||
Reference in New Issue
Block a user