docs: the conditions that count and the sensitivity list in README, CHANGELOG and CLAUDE.md

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

View file

@ -58,7 +58,11 @@ carousel, Python code, and a Claude plugin (own repo, later).
pre-registration. Clarifications 105 to 113 settle the rest of clarification 60: the price threshold, the
thresholds behind «holder under betingelser», the conditions of part I, the Sobol indices, the threshold
surfaces, and how the sensitivities are read (on the main run's step, in «normalisering»). 109 (M6 needs
no threshold) fills in clarification 17 of the pre-registration and is the operator's to approve.
no threshold) and 115 (a threshold counts only when the quantity demonstrably affects the outcome, and a
threshold in rho_N must hold in both halves of rho_D) were approved by the operator 2026-11-13 and are
clarifications 21 to 23 of the pre-registration. Clarifications 116 to 123 settle the sensitivity list
line by line (42 rows from 37 lines), and 124 what the independent reader found in them; 124 (b), that
line 10 can favour A, is put to the operator.
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
@ -95,10 +99,21 @@ carousel, Python code, and a Claude plugin (own repo, later).
and decides part I (`dommer.kan_navngis`, `Scenariodommer.betingelser`); without them part I is given as
far as it follows from the targets. `kjoring.py` also has `ved_siden_av_m6`, `sobol_indekser`,
`pristerskel_for_losning` and `prisflate` (they run the model with `regn_program(..., prisfaktor=k)`),
`flate_over_trekningene` and `kraftprisflate`. The sensitivity list of the parameter file is not coded
through the run yet (clarification 112 says how it is read; the survey of the 37 lines against the code
is `private/del5-rapporter/5e/kartlegging-folsomheter-2026-11-13.md`), and neither are the tools of
chapter 12.
`flate_over_trekningene` and `kraftprisflate`. A threshold carries `kilde`, `indeks`, `paavist` and
`begge_halvdeler`, and `teller` only when all hold (`terskler.virkning`, `holder_i_begge_halvdeler`);
`Betingelser.samtidig` gives the conditions of a solution taken together (clarification 115).
`folsomheter.py` is the sensitivity list through the run: `RADER` holds the 42 rows (which solutions a
row applies to, where it is read, and what it changes: fixed values, the switches of the model code as
`kjoring.Brytere`, or a change that depends on the draw), `kjor_rad` runs one row over the draws on the
main run's step for the solutions it applies to, and `tabell` and `hovedtabell` give the fixed table per
scenario (verdicts per target, M7, part I and II as far as they follow from the targets). The switches
of the model code are keywords of `kontantstrom.dimensjoner` (`minstelast`, `fritt_enhetsvalg`,
`gamma_trinn`, `paaslag_kjernekraft`, `skaler_K_U`, `bare_over_dimensjonerende_feil`, stored on
`Dimensjonering`) and of `regn_program` (`paaslag`, `diskontering`, `skattekostnad`); with them off every
figure is unchanged to the last digit. The four rows of the ownership forms go through
`kjoring.eierformer_paa_trinnet(..., rad=Eierrad...)`, which also gives the state's cash flow next to M6
(clarification 123). The low and the high path of the carbon price are passed in by the caller. The tools
of chapter 12 are not coded.
- `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.
@ -116,6 +131,10 @@ carousel, Python code, and a Claude plugin (own repo, later).
draws by hand, the same figures on several processes and in another order, and the thresholds, the
conditions of part I, the indices and the price threshold through the run. `test_terskler.py` holds the
search for the price threshold, the threshold in a quantity, the surfaces and the Sobol estimator, by hand.
`test_folsomheter.py` holds the rows of the sensitivity list through the run and the table on invented
outcomes; `test_folsomheter_modell.py` and `test_folsomheter_naaverdi.py` the switches of the model code.
A condition can only count with enough draws to show an effect (none can with ten), so the tests of the
conditions use forty.
- `requirements.txt` (numpy, scipy) and `requirements-dev.txt` (pytest, ruff, mypy) pin exact versions;
`pyproject.toml` only configures the tools (ruff `ALL`, mypy strict).