Numerical Optimization vs. Reinforcement Learning for Constrained Decision-Making
Reproducible benchmark comparing a PPO+GAE reinforcement learning agent against a structure-exploiting analytical scheduler across 1.96M EV-charging sessions.
96.65% completion & 20.0% peak reduction (Analytical) vs. 79.19% & 6.6% (PPO across 1.96M sessions)
- Python
- PyTorch
- PPO
- GAE
- Constrained MDPs
- Numerical Optimization

Problem
Evaluating whether deep reinforcement learning outperforms structured analytical optimization under strict operational capacity constraints.
Approach
Formulated EV-charging scheduling under hard capacity constraints as a constrained Markov Decision Process (MDP), trained a Proximal Policy Optimization (PPO) agent with Generalized Advantage Estimation (GAE) across 1.96M real charging sessions, and benchmarked it against a structure-exploiting analytical scheduler.
Results
Built a reproducible training and evaluation benchmark comparing completion rate, peak-load reduction, and constraint violations across varied operating regimes. On this dataset, the structure-exploiting analytical scheduler achieved 96.65% task completion and 20.0% peak-demand reduction, outperforming the trained PPO agent (79.19% completion, 6.6% peak reduction).
What Went Wrong
An early reward-scaling bug caused the PPO value network to diverge, destabilizing policy updates.
What I Learned
After fixing reward normalization, the structure-exploiting analytical baseline still outperformed the learned policy on this problem and dataset—suggesting that exploiting known domain structure can be more effective than pure RL under hard constraints.
PPO + GAE vs. Structure-Exploiting Analytical Scheduler (1.96M Sessions)
Task Completion Rate
Peak-Demand Reduction
24-HOUR DISPATCH PROFILE // 1.96M SESSIONS
Peak Load vs. Soft-Cap (β) Tradeoff
Uncontrolled Peak
70.0 kW
PPO-RL (Baseline)
65.4 kW · 79.19% comp.
3-Tier Analytical (β-capped)
56.0 kW · 96.65% comp.
Photo Gallery // 1 Asset
Links & Artifacts
Code / artifacts being prepared for release.