HomePower EngineeringNeighborhood Microgrid Reactive-Power Optimizer (2D)

Neighborhood Microgrid Reactive-Power Optimizer (2D)

2D radial-feeder DistFlow simulator: drag-pan the feeder diagram, tune load / capacitor / impedance / power-factor sliders and watch a gradient-descent optimizer flatten the voltage profile in real time, with linked voltage, capacitor and cost-descent charts.

Power Engineering2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-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 2D 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. A pannable, zoomable feeder diagram is paired with linked voltage-profile, capacitor-bank and cost-descent charts, and feeder resistance, reactance, power factor and the optimizer's own learning rate are all live sliders.

⚙ Under the hood

2D radial-feeder DistFlow simulator: drag-pan the feeder diagram, tune load, capacitor, impedance and power-factor sliders and watch a gradient-descent optimizer flatten the voltage profile in real time, with linked voltage-profile, capacitor-bank and cost-descent charts.

microgridpower flowreactive powergradient descentvoltage stabilitydistribution grid

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

What did you find?

Add reproduction steps (optional)