docs: describe M5 and the verdicts for five solutions and the sensitivities that are switches

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-11-13 14:26:13 +01:00
commit 64d24c7800
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
3 changed files with 40 additions and 14 deletions

View file

@ -18,9 +18,9 @@ carousel, Python code, and a Claude plugin (own repo, later).
avoided emissions and cooling water).
Every model parameter must trace to an entry here.
- `FORHANDSREGISTRERING.md`: the approved direction and pre-registered criteria (M1–M7). Committed.
- `modell/spesifikasjon.md`: the model specification (equations S1–S54; of chapter 17,
the addition to the direction, solution T is coded through the build-out, the power system, the cash
flow, the levelised cost, ownership and scale, and S48–S54 are coded; T through M5 and the verdicts is not).
- `modell/spesifikasjon.md`: the model specification (equations S1–S54; chapter 17, the addition to the
direction, is coded all the way: solution T through the build-out, the power system, the cash flow, the
levelised cost, ownership, scale, M5 and the verdicts, and S48–S54).
`modell/parametere.json`: the frozen
parameters (value, range, distribution, source entries); its checksum is recorded in the pre-registration
(version 1.1 after the one deviation of 2026-11-12, which added the quantities of chapter 17.8).
@ -48,7 +48,10 @@ carousel, Python code, and a Claude plugin (own repo, later).
holds the sources' figures for M5 (i), mirrored in `miljo.KILDEVERDIER_M5`. Clarifications 70 to 75 hold the
readings of chapter 17 made when its build-out was coded, and 76 to 81 those made when T was taken through
the power system and the cash flow, and 82 to 87 those made when T and the loss of demand were taken through
the levelised cost, ownership and scale, all settled against an independent reader's code.
the levelised cost, ownership and scale, and 88 to 94 those made when M5 and the verdicts were coded for
five solutions and three sensitivities of chapter 17.8 as switches, all settled against an independent
reader's code. Clarification 93 (which conditions can be named when M5 holds under conditions) is a proposal
the operator has not decided; `dommer.del_I` takes the answer as an argument.
Solution T (`Losning.T_F`, `Losning.T_K`) goes through `lag_plan` (a `Trinnvisplan`) and `regn_program`
with a module in the place of a facility (`Programresultat.P_enhet`): renewable modules have their own
portfolio as in C, the nuclear modules of T-K share the programme's units as in B
@ -57,11 +60,18 @@ carousel, Python code, and a Claude plugin (own repo, later).
without a loss). `miljo.py` puts S53 (`unngaatt_utslipp`, `utslipp_med_fradrag`) and S54 (`kjolevann`)
together over a programme for all solutions. `nivaaisert.py`, `eierskap.py` and `skala.py` take T per
module (`res.P_enhet`, `res.reaktoreffekt(k)`, `res.antall_paa_felles(t, ...)`) and carry the factor of
S51 per vintage in S19, S27, S31 and S42; the rules of M5 in `miljo.py` and the verdicts in `dommer.py`
do not know five solutions yet (part 5T-4d).
S51 per vintage in S19, S27, S31 and S42. The ladder, part I and M7 in `dommer.py` cover the five
solutions of `DOMSLOSNINGER` (A, B, C, T-F, T-K; `a_er_best` and `dom_m7` take the net present values per
solution); M5 in `miljo.py` holds by definition for T-F and judges T-K as nuclear power. Three
sensitivities of chapter 17.8 are switches: `regn_program(..., full_fortrengning_i_forste_trinn=True)`
(`Programresultat.delta_V(inn, k)` is then one for the first-stage modules), `lag_plan(...,
ny_kraft_fra=2031)` for C and T, and `inn.med({"P_m": 50.0})` for the module size. With the switches off
every figure is unchanged to the last digit. `miljo.kjolevann` also gives the withdrawal with sea water
only for the nuclear production the data centres themselves use (`uttak_egen_bruk`, clarification 92).
Present values are exactly rounded sums (`math.fsum`), never numpy dot products: those are not repeatable
to the last digit. Sums over technologies go in the plants' own order, never over a set of names: its order
differs from run to run. The run over the draws, the sensitivities and the tools of chapter 12 are not coded yet.
differs from run to run. The run over the draws, the other sensitivities and the tools of chapter 12 are not
coded yet.
- `data/trekninger.npy` and `data/trekninger.json`: the 10 000 draws of the 91 drawn quantities, in the parameter
file's units. `data/aarshendelser.npy` and `.json`: one uniform number per draw and year 2028–2100 for the
export rule (own seed). Committed; every later computation reads them.
@ -72,6 +82,8 @@ carousel, Python code, and a Claude plugin (own repo, later).
hand-computed build-outs for T-F and T-K, and S48 to S54. `test_trinnvis_kontantstrom.py` holds T through
the power system and the cash flow, the loss of demand, and S53 and S54 over a programme.
`test_trinnvis_nivaaisert.py` holds T and the loss of demand through the levelised cost, ownership and scale.
`test_trinnvis_dommer.py` holds M5 and the verdicts for five solutions on invented outcomes, the three
sensitivities that are switches (hand-computed build-outs), and the water for the data centres' own use.
- `requirements.txt` (numpy, scipy) and `requirements-dev.txt` (pytest, ruff, mypy) pin exact versions;
`pyproject.toml` only configures the tools (ruff `ALL`, mypy strict).