Capacity¶
Resource limits that control robot density.
Concept¶
Capacity defines how many robots can occupy a resource simultaneously.
Node Capacity¶
Maximum robots at a location:
Edge Capacity¶
Maximum robots on a path:
Why Capacity Matters¶
Safety¶
Prevents physical collisions:
Realism¶
Models actual constraints:
- Aisle widths
- Intersection sizes
- Station layouts
Performance¶
Affects traffic flow:
Node Capacity¶
Single Occupancy (Default)¶
Multi-Occupancy¶
Use Cases for Higher Capacity¶
| Location | Typical Capacity |
|---|---|
| Regular aisle | 1 |
| Wide intersection | 2-4 |
| Waiting area | 5-10 |
| Station approach | 2-3 |
Edge Capacity¶
Single Lane (Default)¶
Multi-Lane¶
Use Cases for Higher Capacity¶
| Path Type | Typical Capacity |
|---|---|
| Regular aisle | 1 |
| Wide main aisle | 2-3 |
| Highway corridor | 3-4 |
Capacity and Direction¶
Bidirectional Edges¶
Same capacity for both directions:
One-Way Edges¶
Capacity applies to allowed direction only:
Capacity Enforcement¶
Blocking¶
When at capacity, robots wait:
1. R1 at node N2
2. R2 requests N2
3. N2 at capacity (1/1)
4. R2 waits at current location
5. R1 leaves N2
6. R2 enters N2
Queue Formation¶
Multiple waiting robots form queues:
Capacity Configuration¶
Global Defaults¶
Per-Resource Overrides¶
nodes:
- id: "main_intersection"
capacity: 4
- id: "station_S1_approach"
capacity: 3
edges:
- from: "A1"
to: "A2"
capacity: 2 # Wide aisle
Capacity Planning¶
Bottleneck Identification¶
Low capacity + high traffic = bottleneck:
Solutions¶
- Increase capacity: Widen aisles, expand intersections
- Add routes: Parallel paths reduce load
- Reduce traffic: Better task distribution
Simulation-Based Tuning¶
- Run simulation with baseline capacity
- Identify congestion hotspots
- Increase capacity at hotspots
- Verify improvement
Effective Throughput¶
Theoretical Maximum¶
Example¶
Edge with: - Capacity: 2 - Length: 6m - Speed: 1.5 m/s - Traversal time: 4s
Real Throughput¶
Always lower due to: - Entry/exit delays - Coordination overhead - Uneven traffic patterns
Best Practices¶
Conservative Defaults¶
Start with capacity = 1: - Simplest to reason about - Safest (no collisions) - Increase selectively
Match Physical Layout¶
Test Changes¶
Small capacity changes can have large effects on congestion patterns.