Commit graph

5 commits

Author SHA1 Message Date
b3dea4410b
data(resultater): the two extra files next to the main run, fordelinger.json and miljo.json, with their checksums
Written by the command tilleggsfiler with --frys on eight processes, from the code at f17d4d2, 2026-11-14
14:05 to 15:29, exit code 0: fordelinger.json (the percentiles 0 to 100 of five quantities per scenario,
step and solution), miljo.json (emissions and cooling water per year over the draws) and tillegg.json. The
checksums in tillegg.json match the two files, and all three carry the same head as the six files of the
main run, which are unchanged. Where every draw can be built (42 of 210 combinations), the 50th percentile
of the net present value equals the median in dommer.json exactly.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 18:59:56 +01:00
bb3988e1e9
data(resultater): the six files of the main run on the frozen numbers
Written by the command hovedkjoring with --frys on eight processes, from the code at 085b642, started
2026-11-14 09:11 and finished 14:04: dommer.json, tidslinje.json, eierformer.json, terskler.json,
folsomheter.json and innhold.json (10 000 draws, the ladder 1, 5, 10, 20, 40, six scenarios, seven
solutions). The checksums in innhold.json match the five files, and all six carry the same head with the
checksum of the frozen parameter file (4b8809bc...7f16). The command kontroll has not yet reproduced them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 14:05:33 +01:00
ea26cd4226
feat(trekninger): read parameter file 1.1 and store the new draws
The loader knows the new checksum and the units of the new quantities
(g CO2 per kWh, cubic metres per MWh). 10 000 draws of 91 quantities with the
same seed; the four new ones are the last columns. All columns have new
numbers, because the random numbers are laid out row by row. The stream for
yearly events is byte for byte the same; only its description records the new
checksum. Tests for the counts, the new quantities and the checksum in the
pre-registration. README, CHANGELOG and CLAUDE.md updated.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 23:07:09 +01:00
5c91cadf4c
feat(kode): add the build-out, the power system and the cash flow
- 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>
2026-11-12 11:58:24 +01:00
a63f66c416
feat(kode): add the levelised equations, the parameter reader and the draws
One pure function per equation for chapters 1 to 3 of the specification
(S1-S21, S36, S43-S47), a strict reader for the frozen parameter file with
checksum, validation and unit conversion, and the 10 000 Monte Carlo draws of
the 87 drawn quantities, stored in data/ and reproducible bit for bit.

Tests: unit tests and edge cases per equation, the reader, the draws, and
known answers from Argonne, NOU 2026: 4, Epoch and NVE with the sources' own
assumptions. Five comparisons miss the 5 % tolerance and are kept as strict
expected failures with the measured deviation. No result for the hypothesis
is computed. ruff ALL and mypy strict pass.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 10:08:47 +01:00