feat(kjoring): thresholds, the conditions of part I, Sobol indices and threshold surfaces

Clarifications 105 to 111, on invented outcomes and made-up draws only. The price
threshold runs the model with the price multiplied by a factor; the thresholds in
a quantity, the indices and two of the surfaces are read from the outcomes per draw.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-11-13 17:57:52 +01:00
commit 8d13501653
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
10 changed files with 1561 additions and 79 deletions

View file

@ -236,9 +236,7 @@ def test_del_I_holder_ikke_forst_naar_alle_fem_er_felt() -> None:
}
median = dict.fromkeys(per_losning, 5.0)
assert dommer.del_I(per_losning, median, _PAA_25) is Dom.BETINGELSER
assert (
dommer.del_I(per_losning, median, _PAA_25, betingelser_kan_navngis=False) is Dom.HOLDER_IKKE
)
assert dommer.del_I(per_losning, median, _PAA_25, har_terskel={}) is Dom.HOLDER_IKKE
median[Losning.T_K] = -1.0
assert dommer.del_I(per_losning, median, _PAA_25) is Dom.HOLDER_IKKE
# the order the solutions stand in does not matter