MiniCTRMSearch

MiniCTRM - Build Tutorial 668: Pipeline rates: the tariff as dated data, and defaults a pipeline opts into

→ 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

Each pipeline's tariff kept as effective-dated rows, one resolver with one precedence that explains its answer, a Pipeline Rates screen with a path lookup and a tariff check, and a per-pipeline switch that offers the tariff's fuel and charges on the transportation ticket and changes nothing when it is off.

  • How a tariff is filed – Rate schedules, charges, zones and points, seasons, maximum and negotiated rates, and dates that step.
  • Build it – The rows, the resolver, the screens, the opt-in defaults, and the matrix and loads.
  • Ship it – Quick CI, a pull request, a squash merge.
  • How MiniCTRM did it – The Pipeline Rates screen and its tabs.

Before you start

The lessons this one builds on: 541 Reference data and the interactive Data Model, 544 Pipeline, Zone and Location: where physical gas changes hands, 612 Operations: confirms, invoices and operational events, 665 Natural gas transportation: paths, fuel in kind, reservation and usage.

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

From typed values to the tariff

1 / 12
From typed values to the tariff
How a tariff is filed

The words of a tariff

2 / 12
The words of a tariff
How a tariff is filed

Which rate wins

3 / 12
Which rate wins
How a tariff is filed

Offered, never imposed

4 / 12
Offered, never imposed
Build it

The rate model

5 / 12
The rate model
Build it

The resolver

6 / 12
The resolver
Build it

The schedulers' screens

7 / 12
The schedulers' screens
Build it

Defaults a pipeline opts into

8 / 12
Defaults a pipeline opts into
Build it

The matrix and the loads

9 / 12
The matrix and the loads
Ship it

Ship it

10 / 12
Ship it
How MiniCTRM did it

Pipeline Rates in MiniCTRM

11 / 12
Pipeline Rates in MiniCTRM
What you have now

What you have now

12 / 12
What you have now

You have finished lesson 668, Pipeline rates: the tariff as dated data, and defaults a pipeline opts into.

Where next?

← → move · N notes · Home / End