feat(kode): first coding of business economics, ownership, scale, environment and verdicts
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>
This commit is contained in:
parent
fb13b8fd75
commit
e216702d69
15 changed files with 3697 additions and 45 deletions
10
CLAUDE.md
10
CLAUDE.md
|
|
@ -30,13 +30,19 @@ carousel, Python code, and a Claude plugin (own repo, later).
|
|||
`inndata.py` holds one set of values in the equations' units (`Inndata`; `fra_trekning` builds it for a draw).
|
||||
`utbygging.py` (S22: start years, IT vintages, export stops), `kraftsystem.py` (S23 to S25, S38) and
|
||||
`kontantstrom.py` (S26, S34, S35, S40, S45: `lag_plan`, `regn_program`) put the equations together over the
|
||||
years. So far: chapters 1 to 6; business economics, ownership, scale, environment and verdicts are not coded yet.
|
||||
years. `nivaaisert.py` (the power cost per facility, year and vintage on levelised form; S15, S19, S27, S42),
|
||||
`eierskap.py` (S28 to S30: business cash flow, tax, ownership forms, the criteria over the draws), `skala.py`
|
||||
(S31, M6), `miljo.py` (S32, the rules of M5) and `dommer.py` (S37, the verdict per target, the step of the
|
||||
ladder, the overall verdicts) cover chapters 7 to 11. They are a first coding: the readings in them are being
|
||||
held against an independent reader's code and are not yet settled in chapter 16. The run over the draws, the
|
||||
sensitivities and the tools of chapter 12 are not coded yet.
|
||||
- `data/trekninger.npy` and `data/trekninger.json`: the 10 000 draws of the 87 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.
|
||||
- `tests/`: unit tests per equation, the loader, the draws, and `test_fasit.py` (known answers from Argonne,
|
||||
NOU 2026: 4, Epoch and NVE with the sources' own assumptions). Build-out, power system and cash flow are tested
|
||||
on the made-up set of values in `tests/conftest.py`.
|
||||
on the made-up set of values in `tests/conftest.py`, and so are the levelised cost, ownership, scale and
|
||||
environment. The verdicts are tested on invented outcomes per draw.
|
||||
- `requirements.txt` (numpy, scipy) and `requirements-dev.txt` (pytest, ruff, mypy) pin exact versions;
|
||||
`pyproject.toml` only configures the tools (ruff `ALL`, mypy strict).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue