MiniCTRMSearch

MiniCTRM - Build Tutorial 794: Battery optimization: what the software does, how to build one, where it meets your CTRM

→ to begin · N for the speaker notes

On a phone: Next or a swipe left to begin, Notes for the words.

What you'll learn

A clear picture of how a wholesale battery earns money and what its optimizer does, a working prototype optimizer in a sandbox of its own, a design for what production adds, and the boundary and interface between the optimizer and your CTRM.

  • Why MiniCTRM does not have it – MiniCTRM's reason: out of MiniCTRM's scope, a different kind of system.
  • How a grid battery earns money – Power, energy, efficiency, state of charge and the revenue stack.
  • The optimization problem – Decisions, limits, an objective and a forecast; one worked day.
  • The optimizer and a CTRM, side by side – Different jobs; where the contracts and the hedges live.
  • Build it, beside the CTRM – The boundary, a prototype, the production design, the interface and the ship.
  • How MiniCTRM did it – The CTRM's side: power deals by the hour.

Before you start

The lessons this one builds on: 524 Commodities are local: why a commodity system does not travel, and how to make yours, 542 Market data: forward curves, FX, settlement prices and closes, 661 Power: delivery patterns, peak and off-peak, physical and financial, 791 Five-minute power: every interval its own volume and price, 793 Bid-to-bill: what it is, how it works, and where it meets your CTRM.

Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.

Welcome

Batteries on the grid

1 / 15
Batteries on the grid
Why MiniCTRM does not have it

Why MiniCTRM does not have it

2 / 15
Why MiniCTRM does not have it
How a grid battery earns money

Power, energy and the state of charge

3 / 15
Power, energy and the state of charge
How a grid battery earns money

The revenue stack

4 / 15
The revenue stack
The optimization problem

Decisions, limits, an objective, a forecast

5 / 15
Decisions, limits, an objective, a forecast
The optimization problem

One day, worked by hand

6 / 15
One day, worked by hand
The optimizer and a CTRM, side by side

The optimizer and a CTRM, side by side

7 / 15
The optimizer and a CTRM, side by side
Build it, beside the CTRM

What your system needs first

8 / 15
What your system needs first
Build it, beside the CTRM

Where your CTRM ends

9 / 15
Where your CTRM ends
Build it, beside the CTRM

A prototype optimizer, in a sandbox

10 / 15
A prototype optimizer, in a sandbox
Build it, beside the CTRM

What production adds

11 / 15
What production adds
Build it, beside the CTRM

What passes between them

12 / 15
What passes between them
Build it, beside the CTRM

Ship it

13 / 15
Ship it
How MiniCTRM did it

The CTRM's side: power deals by the hour

14 / 15
The CTRM's side: power deals by the hour
What you have now

What you have now

15 / 15
What you have now

You have finished lesson 794, Battery optimization: what the software does, how to build one, where it meets your CTRM.

Where next?

← → move · N notes · Home / End