Solve
With perfect hindsight, when should a 100 MW / 200 MWh battery have charged and discharged on a given day to earn the most? Pick a region and a day, then solve. To see the infrastructure that runs the solve, visit the site architecture page.
Data
South Australia, Sat, 24 Oct 2026: 288 five-minute spot prices, the only data the model needs besides the battery's limits. Times are market time (AEST).
Loading prices…
Formulation
A mixed-integer program: maximise revenue from buying and selling at the spot price, given the battery's limits. The binary stops it charging and discharging at once, which it would otherwise do on negative prices to burn energy through its losses.
subject to
| Symbol | Meaning | Value |
|---|---|---|
| Intervals of the trading day | 0 … 287 (5-minute) | |
| Spot price (RRP) in interval t | From AEMO, $/MWh | |
| Charge and discharge power | MW, chosen by the solver | |
| Energy stored at the end of t (state of charge) | MWh, chosen by the solver | |
| Mode: 1 allows charging, 0 allows discharging | Binary, chosen by the solver | |
| Power limit | 100 MW | |
| Energy capacity | 200 MWh | |
| One-way efficiency, the square root of round trip | √0.88 ≈ 0.938 | |
| State of charge at the start, and the minimum at the end | 100 MWh | |
| Interval length | 5/60 h |
Assumptions: the battery takes prices as given (it doesn't move them), knows the whole day's prices in advance, trades energy only, and ignores loss factors, ramp limits and degradation. HiGHS stops within 0.1% of the best possible revenue.