docs: thresholds and Sobol indices settled against an independent reader's code (clarification 114, review log part 15)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
925df404a0
commit
9d6a9836ec
5 changed files with 198 additions and 12 deletions
28
CLAUDE.md
28
CLAUDE.md
|
|
@ -53,10 +53,12 @@ carousel, Python code, and a Claude plugin (own repo, later).
|
|||
reader's code. Clarifications 95 to 104 settle the run over the draws (the part of clarification 60 that
|
||||
concerns it); 98 (which paths the ownership forms are compared on), 102 (part II when no step can be built)
|
||||
and 104 (a single facility cannot be the 25 % step) were approved by the operator 2026-11-13 and are
|
||||
clarifications 20, 18 and 19 of the pre-registration. **104 is not coded yet:** `dommer.trinn_for_dommene`
|
||||
still follows clarification 57; it is coded with the thresholds, before anything is computed. Clarification 93 (which conditions can be named when M5 holds under
|
||||
conditions) was approved by the operator 2026-11-13 and is clarification 17 of the pre-registration; it is
|
||||
not coded yet, and `dommer.del_I` takes the answer as an argument.
|
||||
clarifications 20, 18 and 19 of the pre-registration. Clarification 93 (which conditions can be named when
|
||||
M5 holds under conditions) was approved by the operator 2026-11-13 and is clarification 17 of the
|
||||
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.
|
||||
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
|
||||
|
|
@ -85,8 +87,18 @@ carousel, Python code, and a Claude plugin (own repo, later).
|
|||
targets, part II, which is None when no step can be built); `tidslinje_over_trekningene` gives median,
|
||||
percentiles and shares per year; `eierformer_paa_trinnet` compares the ownership forms on the step in a
|
||||
second pass. The run takes the sets of values from the caller and reads neither the parameter file nor the
|
||||
stored draws; M5 is passed in (`dommer_m5`). The other sensitivities, the Sobol indices, the thresholds
|
||||
(clarifications 60 and 93) and the tools of chapter 12 are not coded yet.
|
||||
stored draws; M5 is passed in (`dommer_m5`). `terskler.py` holds the search for the price threshold
|
||||
(`pristerskel`, for a function that gives the median for a price factor), the threshold in one drawn
|
||||
quantity (`terskel`, `terskler_for_maal`) and the surfaces over two quantities (`flate`); `sobol.py` the
|
||||
first-order indices from given draws (`indeks`, `klasser`). `sett_dommer(kjoring, M5, storrelser=...,
|
||||
status=...)` takes the drawn values and the status of the quantities, finds the thresholds on the step
|
||||
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.
|
||||
- `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.
|
||||
|
|
@ -101,7 +113,9 @@ carousel, Python code, and a Claude plugin (own repo, later).
|
|||
sensitivities that are switches (hand-computed build-outs), and the water for the data centres' own use.
|
||||
`test_kjoring.py` holds the run over the draws on made-up draws (variants of the made-up set) and on
|
||||
invented outcomes per draw: paths that cannot be built, the step and the scenarios, the timeline over the
|
||||
draws by hand, and the same figures on several processes and in another order.
|
||||
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.
|
||||
- `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