feat(kode): bring business economics, ownership, scale and verdicts in line with clarifications 41-61
The accident cost stays in S11 and S31 when the additionality rule binds; the peak year of M6 is taken among operating years; tax depreciation and carried losses lose real value with price growth; the special tax deducts the corporate tax, has a return allowance and carries a negative basis with interest, so it only meets return above r_e; ownership forms are compared only with forms that pass the EEA assessment; the overall verdict needs a negative median to fell a solution and takes whether conditions can be named; M5 does not hold when both (i) and (ii) are broken; a non-positive price without the programme is an error in M3. Made-up numbers only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
57a8256306
commit
d4aebad0f9
14 changed files with 335 additions and 95 deletions
|
|
@ -256,15 +256,26 @@ def test_B_kraftkostnaden_bruker_programmets_enheter(oppdiktet: LagInndata) -> N
|
|||
assert kost.c_a[:, j] == pytest.approx(c_a)
|
||||
|
||||
|
||||
def test_bindende_tilleggsregel_gir_nettoledd_null(oppdiktet: LagInndata) -> None:
|
||||
"""A cheap reactor that pays its way on the grid neither adds nor takes (clarification 11)."""
|
||||
def test_bindende_tilleggsregel_lar_bare_ulykkeskostnaden_staa(oppdiktet: LagInndata) -> None:
|
||||
"""A cheap reactor that pays its way on the grid neither adds nor takes (clarification 11).
|
||||
|
||||
The accident cost is outside NV_i of S45 and stays (clarification 41): 1e-5 a year per
|
||||
unit times the cost of an accident beyond the 8 mrd. kr insured. In B three units of
|
||||
1 000 MW (1 000 mrd. kr) shared by two facilities; in B' each facility's own units of
|
||||
50 MW (50 mrd. kr).
|
||||
"""
|
||||
inn = oppdiktet(c_N_ref=10e6, f_N=0.3e6, s_brikker=0.12)
|
||||
for losning in (Losning.B, Losning.B_MERKET):
|
||||
res = _regn(inn, losning, N_anlegg=2)
|
||||
assert res.varsigma[ks.KJERNEKRAFT] < 1.0
|
||||
j = 2040 - 2027
|
||||
H_a = 5e6 * (600.0 + res.dim.P_G_N) * _crf(0.06, 40)
|
||||
c_a = 1.05 * res.kraftaar[j].pris + (H_a + float(res.F_a[j]) / 2.0) / E_D
|
||||
if losning is Losning.B:
|
||||
assert sum(len(f.gruppe.numre) for f in res.felles) == 3
|
||||
ulykke = 3 * 1e-5 * (1e12 - 8e9) / 2.0
|
||||
else:
|
||||
ulykke = res.dim.N_u * 1e-5 * (50e9 - 8e9)
|
||||
c_a = 1.05 * res.kraftaar[j].pris + (H_a + float(res.F_a[j]) / 2.0 + ulykke) / E_D
|
||||
assert nv.kraftkostnad(inn, res).c_a[:, j] == pytest.approx(c_a)
|
||||
# a business is credited the plant's surplus: S45 does not apply in M2
|
||||
bedrift = nv.kraftkostnad(inn, res, bedrift=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue