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
|
|
@ -92,9 +92,11 @@ def test_R_bidraget_aar_for_aar_og_M6(oppdiktet: LagInndata) -> None:
|
|||
assert ut.M6_snitt == pytest.approx((i_drift - 1e9 / 5.0) / 500e9)
|
||||
assert ut.M6_median == pytest.approx((i_drift - 1e9) / 250e9)
|
||||
assert ut.M6_2050 is None
|
||||
# at the made-up cost-based price the contribution is negative, so no year beats 2027
|
||||
# at the made-up cost-based price the contribution is negative in every year; the peak
|
||||
# is taken among the operating years, so the years before start-up (zero) do not count
|
||||
assert i_drift < 0
|
||||
assert (ut.M6_topp, ut.toppaar) == (0.0, 2027)
|
||||
assert ut.M6_topp == pytest.approx(i_drift / 500e9)
|
||||
assert ut.toppaar >= 2031
|
||||
# with 40 % owned outside Norway only 60 % of the surplus above normal return counts
|
||||
utenlandsk = skala.skala(inn, res, u_e=0.4)
|
||||
assert utenlandsk.B_6[4] == pytest.approx(
|
||||
|
|
@ -175,8 +177,14 @@ def test_A_uten_brikker_betaler_ikke_variable_kostnader(oppdiktet: LagInndata) -
|
|||
assert ut[2039 - 2027] == pytest.approx(med_last)
|
||||
|
||||
|
||||
def test_kraftverk_som_tilleggsregelen_binder_for_teller_null(oppdiktet: LagInndata) -> None:
|
||||
"""Two facilities in B with a cheap reactor: the units neither add nor take in S31."""
|
||||
def test_kraftverk_som_tilleggsregelen_binder_for_teller_bare_ulykkeskostnaden(
|
||||
oppdiktet: LagInndata,
|
||||
) -> None:
|
||||
"""Two facilities in B with a cheap reactor: the units neither add nor take in S31.
|
||||
|
||||
Only the accident cost is left (clarification 41): three units of 1 000 MW, each
|
||||
1e-5 a year times the 1 000 mrd. kr of an accident beyond the 8 mrd. kr insured.
|
||||
"""
|
||||
inn = oppdiktet(c_N_ref=10e6, f_N=0.3e6, s_brikker=0.12)
|
||||
res = _regn(inn, Losning.B, N_anlegg=2)
|
||||
assert res.varsigma[ks.KJERNEKRAFT] < 1.0
|
||||
|
|
@ -186,7 +194,10 @@ def test_kraftverk_som_tilleggsregelen_binder_for_teller_null(oppdiktet: LagInnd
|
|||
1000.0 * _lcoc_v() - 2.5e9 - 1.05 * res.kraftaar[j].pris * E_D - BYGG - MASKINVARE - nett
|
||||
)
|
||||
ut = skala.overskudd_utover_avkastning(inn, res)
|
||||
assert ut[j] == pytest.approx(2.0 * per_anlegg - float(res.F_a[j]))
|
||||
enheter = sum(len(f.gruppe.numre) for f in res.felles if f.gruppe.start <= 2040)
|
||||
assert enheter == 3
|
||||
ulykke = 3 * 1e-5 * (1e12 - 8e9)
|
||||
assert ut[j] == pytest.approx(2.0 * per_anlegg - float(res.F_a[j]) - ulykke)
|
||||
# without the rule the surplus of the units is credited
|
||||
dim = ks.dimensjoner(inn, Losning.B)
|
||||
uten = ks.regn_program(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue