feat(nivaaisert): take solution T and the loss of demand through the levelised cost, ownership and scale
The power cost per module (S11): a renewable module with its own portfolio and grid connection, as a facility in C; the nuclear modules of T-K on the programme's units, as the facilities in B, with only the nuclear modules that use power in the denominator. Tariff, building, IT hardware and residual value per module with P_m. The units' cash flow is shared among the nuclear modules operated that year, never on the renewable modules. The factor of S51 stands per vintage in S19, S27 and S42 and in the disconnection arm a business pays; S31 gets it through the revenue and F_a of the cash flow. Without a loss, and for A, B, B', C and R, every figure of chapters 7 to 9 is unchanged to the last digit (282 made-up paths, 151 525 lines of figures compared byte for byte). The technologies of a facility are now kept in the plants' own order. As a set of names their order differed from run to run, and with it the last digit of every sum over them in C. The refusal of T and of a loss of demand (krev_uten_tillegget) is removed. Run on made-up numbers only; no result for the hypothesis has been computed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
e0db6ab4b7
commit
b58e79ee82
6 changed files with 650 additions and 82 deletions
|
|
@ -16,7 +16,7 @@ from typing import TYPE_CHECKING
|
|||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from tokenfabrikker import dommer, eierskap, miljo, nivaaisert, skala
|
||||
from tokenfabrikker import dommer, miljo
|
||||
from tokenfabrikker import kontantstrom as ks
|
||||
from tokenfabrikker import ligninger as lg
|
||||
from tokenfabrikker import utbygging as ub
|
||||
|
|
@ -353,19 +353,12 @@ def test_bortfallet_staar_i_utkoblingsarmen(oppdiktet: LagInndata) -> None:
|
|||
assert med.F_a[j] == pytest.approx(0.8 * uten.F_a[j])
|
||||
|
||||
|
||||
def test_kapitlene_etter_kontantstrommen_avviser_det_de_ikke_kan_ennaa(
|
||||
oppdiktet: LagInndata,
|
||||
) -> None:
|
||||
inn = oppdiktet(tau_nett=6.0)
|
||||
t = _regn(inn, Losning.T_F)
|
||||
med = _regn(inn, Losning.C, bortfall=ks.fast_bortfall(0.2))
|
||||
for res, melding in ((t, "solution T is not taken"), (med, "loss of demand")):
|
||||
with pytest.raises(NotImplementedError, match=melding):
|
||||
nivaaisert.kraftkostnad(inn, res)
|
||||
with pytest.raises(NotImplementedError, match=melding):
|
||||
eierskap.bedriftsstrom(inn, res)
|
||||
with pytest.raises(NotImplementedError, match=melding):
|
||||
skala.skala(inn, res)
|
||||
def test_teknologiene_staar_i_kraftverkenes_rekkefolge(oppdiktet: LagInndata) -> None:
|
||||
"""Not in the order of a set of names: that differs from run to run and moves the last digit."""
|
||||
inn = oppdiktet()
|
||||
res = _regn(inn, Losning.C)
|
||||
assert [list(a.salg) for a in res.anlegg] == [[v.teknologi for v in res.verk[0]]]
|
||||
assert len(res.anlegg[0].salg) == 3
|
||||
|
||||
|
||||
# ------------------------------------------------- S32, S53 and S54 over a programme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue