HomePower EngineeringNeighborhood Microgrid Reactive-Power Optimizer

Neighborhood Microgrid Reactive-Power Optimizer

Interactive radial feeder microgrid: gradient descent tunes each house's capacitor bank in real time, minimizing a voltage-deviation cost function derived from the linearized DistFlow equations while you drag the load and capacitor-capacity sliders.

Power Engineering3DAdvanced60 FPS
neighborhood-microgrid-optimizer ↗ Open standalone

Ten houses share one radial feeder run from a substation, and every house draws real power plus lagging reactive power exactly like real inductive household loads do. This simulator solves the linearized DistFlow power-flow equations after every change, so dragging the neighborhood-load slider genuinely sags the far end of the feeder below nominal voltage. A gradient-descent optimizer then tunes each house's capacitor bank — the same reactive-power compensation utilities install on real distribution feeders — to flatten the voltage profile while minimizing a cost function that penalizes both voltage deviation and capacitor usage, with live readouts for minimum bus voltage, total line loss, and the cost function's descent.

⚙ Under the hood

A radial feeder solves the linearized DistFlow power-flow equations live as you scale neighborhood load, while a gradient-descent optimizer tunes each house's capacitor bank to flatten the voltage profile and minimize a voltage-deviation cost function.

microgridpower flowreactive powergradient descentvoltage stabilitydistribution grid

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)