utbyggingsplan_trinnvis follows chapter 17.1: the grid balance of the
first stage, the payment condition for a module's power plants, S49,
and in T-K the two stocks of chips and the queue for replacements.
tidslinje gives MW IT in operation per type of power (S50). S48-S54
are pure functions in ligninger.py, and Inndata carries the new
quantities, the scenarios for the loss of demand and the paths of
u_alt. lag_plan returns a Trinnvisplan for T-F and T-K; regn_program
refuses T until it is taken through the cash flow.
Tested on made-up numbers only (59 new tests, hand-computed build-outs).
Nothing is computed for the hypothesis.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Chapters 7 to 11 of the specification, on the made-up set only:
- nivaaisert: the power cost per facility, year and vintage on levelised
form (S9, S11 with clarifications 2, 11, 13 and 15), S15, S19, S27, S42
- eierskap: the business cash flow with every asset booked, tax, S28, S29
and S30 for the four ownership forms, the criteria over the draws
- skala: S31 year by year, the first year with stable operation, M6
- miljo: S32 year by year, the rules of M5 (i) and (ii)
- dommer: S37, the verdict per target, the step of the ladder, the overall
verdicts; tested on invented outcomes
- kontantstrom: each asset is recorded as it is paid, and the price of
compute exposes the competitor's cost and the markup
This is an intermediate step. The readings are not settled: an independent
reader is coding the same from the specification alone, a first comparison
agrees on the levelised cost, S19, S42, the cash flows, M3 and M4 and
differs on depreciation at the final year, tax, debt and two definitions.
Chapter 16 gets the clarifications before any result is computed.
Nothing is computed for the hypothesis; the parameter file is unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- utbygging.py: when each facility starts and which vintages of IT hardware it
gets (S22, S33), with chips as a stock, replacement before new facilities and
the export rule.
- kraftsystem.py: the fitted price lines and the power and capacity balances
year by year (S23, S24, S25, S38).
- kontantstrom.py: the yearly cash flows per facility, the additionality rule
by iteration, the residual value and the net present value for Norway (S26,
S34, S35, S40, S45), for the solutions A, B, B', C and R.
- hendelser.py and data/aarshendelser.npy: the stream of random numbers for the
export rule, one uniform number per draw and year 2028-2100, from its own seed.
- inndata.py: one set of values in the units of the equations.
- ligninger.py: one function per equation for chapters 4 to 6.
Tested on a made-up set of values only (tests/conftest.py); no result for the
hypothesis has been computed. 271 tests pass. Seven are documented misses
against a source: the five from before, and the price lines for NO3 and NO4,
which miss one of NVE's twelve scenarios by 6.0 and 7.7 per cent.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>