Home▸Algorithms & AI▸Optimization Energy Optimization Simulation

🧪 Optimization Energy Optimization Simulation

Interactive 3D economic-dispatch optimizer: watch a Lagrangian dual-ascent algorithm split electrical demand across generators with different cost curves to minimize total fuel cost, live.

Algorithms & AI2DModerate60 FPS📱 Mobile-adapted
optimization-energy-optimization-simulation ↗ Open standalone

This simulation shows how a real optimization algorithm — Lagrangian dual ascent — decides how much power each generator on an electrical grid should produce so that total fuel cost is minimized while exactly meeting demand. Every generator has its own quadratic cost curve; the algorithm iteratively adjusts a single shared "price" signal λ until the sum of each plant's price-optimal output matches the required demand, which is exactly the equal-marginal-cost rule real grid operators use for economic dispatch. Change demand, change the step size, randomize the plants' cost curves, and watch the 3D bars converge to the cost-minimizing split live.

⚙ Under the hood

This simulation explores how optimization algorithms can be used to minimize energy consumption in various systems, showcasing the impact of different parameters and controls.

Energy OptimizationParameter Tuning

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)