ChargeTrek

An electric car is plugged in at home from arrival to departure. Every 15 minutes, charge, stay idle, or discharge (sell energy back to the grid). Leave with exactly the target state of charge (the yellow cell); the score is the net cost of the energy bought and sold, the lower the better. Prices are synthetic.

day-ahead forecast real-time price (revealed)
Your game
Net cost (lower is better)- Time- State of charge- Price now (forecast / real)- Reward (paper, Eq. 6)-
References on this instance
Optimum (perfect information)- Charge immediately- Stepwise replanning-

Keys: ↑ charge, → idle, ↓ discharge, Z undo.

The board: Time runs left to right in 15-minute columns, state of charge bottom (0 %) to top (100 %). Column colour is the day-ahead forecast: green cheap, red expensive. Once a column's real-time price is known, it turns bluish if the real price was above the forecast, and fades as the forecast error grows. The outlined cells ahead are where each action would take you; red outline: the target could no longer be met. Battery: charging adds 2 % per step below 80 % and 1 % above; discharging removes 2 % per step and never goes below 20 %. A step that would pass the target stops at it. With 80 % efficiency, 1 % stored costs 0.94 kWh from the grid and 1 % discharged sells 0.6 kWh. Money bar (right of the grid): net cost grows upward in red, net revenue downward in green.

References: The optimum is the cheapest schedule had all real-time prices been known in advance. Charge immediately charges at once up to the target, then idles (the typical driver). Stepwise replanning re-plans at each step with the real price now and the forecasts afterwards.