Q-Learning Bellman Updates (α=0.12, γ=0.95)
BFS Green Wave Preemption Active
cable
Decoupled Pub-Sub Message Bus (Zero-Copy)
Dynamic Barricade Rerouting: (2,1) East Blocked
sync
16 Q-Agents Synced • Loss: 0.0041
Parallel 15t Baseline Delta: +45.6%
FastAPI Asynchronous Loop (4.2ms)
60 FPS Hardware Render Buffer
Q-Learning Bellman Updates (α=0.12, γ=0.95)
BFS Green Wave Preemption Active
Autonomous Grid Orchestration
•
Region: Sequoia Metro 4x4 Grid
Traffic that thinks.
16 decentralized reinforcement-learning Q-agents coordinating phase states in microsecond consensus with deterministic BFS emergency override corridors.
timer_10
Queue Delay
72.3%
Reduction
speed
System Flow
+45.6%
Throughput
emergency_share
Ambulance ETA
18.2t
Faster BFS
tune
Mesh Policy Tuning
LIVE SYNC
Inflow Demand Multiplier
1.00x
0.2x Off-Peak
1.0x Normal
3.5x Surge
Exploration Decay (ε)
0.050
0.00 Pure Greedy
ε=0.05 (Exploiting)
0.30 Random
Simulation Loop Sync
60 Hz (16ms)
Quick Presets
CONTROL API:
POST /control
{ "action": "spawn_emergency", "start": [0,0], "goal": [3,3] }
Q-Table Snapshot
16 Intersections
State Space |S|
2,048
Actions |A|
8 Phases
Reward Discount γ
0.950
Learning Rate α
0.120
Multi-Agent MARL Mesh
16 Intersections • 4x4 Grid • Zero Starvation
60 FPS (60Hz+)
Node (0,0)
Phase: NS
Timer: 3/15
Q(NS): 0.00
Q(EW): 0.00
Policy: Optimal
Queues:
N:0 S:0 E:0 W:0
verified
Mesh Consensus: 100% Convergence
Vehicles: 48/64
Framerate: 60+ FPS (60Hz)
Collision Risk: 0.00%
Q-Table Updates: 1,428/s
Average Queue Wait
-72.3% vs 14.8t
4.1
ticks / veh
Baseline timer: 14.8 ticks • Net saving 10.7 ticks
System Throughput
+45.6%
712
veh / hr
Baseline static: 489 veh/hr • +223 net clearance
CO₂ Offset (EPA)
Idle Model
11.84
kg saved
0.0022 kg CO₂/idle tick • Cumulative session
Fuel Conserved
Stoichiometric
4.97
L gasoline
Ratio: 0.42 L/kg CO₂ • $7.21 Direct Savings
rss_feed
Live Decoupled Message Bus
ZeroMQ / IPC
14:02:18.420
BFS WAVE
Preemption armed corridor: (0,3) ➔ (1,3) ➔ (1,2) ➔ (2,2) ➔ (2,1) for AMB-04
RTT 1.8ms
14:02:17.912
INCIDENT
Segment (2,1) East capacity set to 0. Barricade routing triggered.
NODE 2,1
14:02:17.204
BELLMAN
Sub-grid 1 Q-consensus updated. New policy argmax_a Q(s,a) phase #3
ALL 16 AGENTS
14:02:16.890
THROUGHPUT
Intersection (1,1) cleared 8 waiting vehicles in 14 ticks. Zero starvation.
+14.2%
POLL:
GET /state (interval: 50ms)
METRICS: GET /metrics (Prometheus export ready)
Active Workers: 4 Tokio Cores
grid_4x4
16-Node Congestion Matrix
Queue Depth Status
Free (<3)
Moderate (3-5)
Critical (>5)
Preempted