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
|
|
@ -376,6 +376,16 @@ def test_s11_kraftverk_som_akkurat_dekker_kostnaden_endrer_ingenting() -> None:
|
|||
assert med == pytest.approx(600)
|
||||
|
||||
|
||||
def test_s11_bindende_regel_lar_ulykkeskostnaden_staa() -> None:
|
||||
"""Nuclear power with S45 binding: only the accident cost of 4 kr/MWh is left."""
|
||||
kjerne = lg.Portefoljeledd(x=1.0, LCOE=500.0, psi=1.0, regelen_binder=True, q_N=4.0)
|
||||
assert kjerne.nettoledd(600) == 4.0
|
||||
verdi = lg.s11_kraftkostnad_nett(
|
||||
p_z=600, n_tap=0.1, portefolje=[kjerne], E_G=8e6, E_D=4e6, H_a=0.0, F_a=0.0
|
||||
)
|
||||
assert verdi == pytest.approx(660 + 4.0 * 2)
|
||||
|
||||
|
||||
def test_s11_portefolje_med_to_teknologier() -> None:
|
||||
"""Hydro earns more than it costs, so S45 binds and its term is zero; wind stands as it is."""
|
||||
vann = lg.Portefoljeledd(x=0.25, LCOE=500.0, psi=1.26, regelen_binder=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue