Metrics & Analysis¶
Understanding and measuring simulation performance.
Overview¶
Metrics quantify simulation outcomes, enabling analysis, comparison, and optimization.
| Topic | Description |
|---|---|
| Key Performance Indicators | Core success metrics |
| Time Series Data | Metrics over time |
| Congestion Metrics | Traffic analysis |
| Root Cause Analysis | Finding bottlenecks |
Why Metrics?¶
Quantify Performance¶
Replace intuition with data:
Enable Comparison¶
Compare configurations objectively:
Guide Optimization¶
Focus effort where it matters:
Metric Categories¶
Throughput Metrics¶
How much work gets done:
| Metric | Description |
|---|---|
| Tasks completed | Total finished tasks |
| Throughput | Tasks per hour |
| Orders fulfilled | Complete orders |
Time Metrics¶
How long things take:
| Metric | Description |
|---|---|
| Task time | Creation to completion |
| Travel time | Movement duration |
| Wait time | Blocked/queued time |
| Service time | At station |
Utilization Metrics¶
How resources are used:
| Metric | Description |
|---|---|
| Robot utilization | Busy vs. idle time |
| Station utilization | Service vs. idle |
| Edge utilization | Traffic density |
Quality Metrics¶
How well targets are met:
| Metric | Description |
|---|---|
| On-time rate | Tasks meeting due time |
| Late tasks | Count/percentage |
| Average lateness | For late tasks |
Metric Levels¶
Aggregate Metrics¶
Summary across simulation:
Time Series Metrics¶
Values over time:
Time | Throughput | Queue Length
-----|------------|-------------
0m | 0 | 0
5m | 82 | 3
10m | 95 | 5
15m | 88 | 4
Distribution Metrics¶
Statistical breakdown:
Output Formats¶
Summary (stdout)¶
Quick overview:
=== Simulation Results ===
Duration: 3600s
Tasks completed: 1,250
Throughput: 1,250 tasks/hour
Avg task time: 42.3s
Robot utilization: 78%
JSON¶
Structured data for processing:
{
"summary": {
"duration_s": 3600,
"tasks_completed": 1250,
"throughput_per_hour": 1250
},
"tasks": {
"avg_time_s": 42.3,
"median_time_s": 38.0
}
}
CSV¶
For spreadsheet analysis:
Configuration¶
Basic Metrics¶
Time Series¶
Detailed Breakdown¶
Using Metrics¶
Analysis Workflow¶
1. Run simulation
└→ Generate metrics
2. Review summary
└→ Identify areas of concern
3. Examine time series
└→ Find when issues occur
4. Drill into details
└→ Understand root cause
5. Adjust configuration
└→ Re-run and compare
Example Analysis¶
Summary shows: Low throughput (800/hr vs. 1000/hr target)
Time series shows: Throughput drops at t=1800s
Detail shows: Station S1 queue spikes at t=1800s
Root cause: S1 capacity insufficient during peak
Solution: Add concurrency to S1 or second station