Neighborhood Battery Dispatch: Time-of-Use Arbitrage, Solar Shifting and Demand-Charge Peak Shaving
A street of eight homes with rooftop solar shares one battery. An exact dynamic-programming optimiser plans the whole day: charge when energy is cheap or solar is in surplus, discharge in the evening peak, and trim the peak import that the demand charge is based on. Change battery size, power, round-trip efficiency, solar, tariff and season, and see the saving and why a small price spread gives nothing. Blender-built houses, panels, transformer and battery container, with numerical checks of the optimiser built in.
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.
A street of eight homes with rooftop solar shares one battery. An exact dynamic-programming optimiser plans the whole day: charge when energy is cheap or solar is in surplus, discharge in the evening peak, and trim the peak import that the demand charge is based on. Change battery size, power, round-trip efficiency, solar, tariff and season, and see the saving and why a small price spread gives nothing. Blender-built houses, panels, transformer and battery container, with numerical checks of the optimiser built in.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install