🔋 Microgrid Dispatch

A remote microgrid serves a varying load over twelve daytime periods. Solar is free (a midday bell), a diesel genset runs at a fuel cost, and a battery can store surplus solar or discharge into the evening, bounded by its state of charge and cycled at a wear cost. The optimum banks midday solar and discharges it later so the genset runs as little as possible. Score is fuel + wear + unmet-load and SoC penalties. 24-D.

Algorithm

Total cost—
Dispatches tried0
Best so far—

Leaderboard

AlgorithmCostEvals
— no runs yet —

What's happening

The JS objective is a line-for-line port of example_applications/microgrid_dispatch and agrees to floating-point tolerance. The line is load, the shaded area is free solar, bars are diesel (up) and battery charge/discharge (signed), and the faint line is battery state of charge.