feat(utbygging): build out solution T in modules and add S48-S54
utbyggingsplan_trinnvis follows chapter 17.1: the grid balance of the first stage, the payment condition for a module's power plants, S49, and in T-K the two stocks of chips and the queue for replacements. tidslinje gives MW IT in operation per type of power (S50). S48-S54 are pure functions in ligninger.py, and Inndata carries the new quantities, the scenarios for the loss of demand and the paths of u_alt. lag_plan returns a Trinnvisplan for T-F and T-K; regn_program refuses T until it is taken through the cash flow. Tested on made-up numbers only (59 new tests, hand-computed build-outs). Nothing is computed for the hypothesis. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
dc2a9855ae
commit
bca6496c0a
12 changed files with 1271 additions and 31 deletions
|
|
@ -23,6 +23,9 @@ if TYPE_CHECKING:
|
|||
from conftest import LagInndata
|
||||
from tokenfabrikker.inndata import Inndata
|
||||
|
||||
I_KONTANTSTROMMEN = tuple(a for a in Losning if not a.trinnvis)
|
||||
"""The solutions the cash flow is coded for. Solution T only has its build-out so far."""
|
||||
|
||||
E_D = 8760.0 * 0.75 * 1.2 * 1000.0
|
||||
"""Yearly energy to one made-up data centre: 7 884 000 MWh."""
|
||||
|
||||
|
|
@ -202,7 +205,7 @@ def test_R_bedriftsstrom_haandregnet(oppdiktet: LagInndata) -> None:
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("losning", list(Losning))
|
||||
@pytest.mark.parametrize("losning", I_KONTANTSTROMMEN)
|
||||
@pytest.mark.parametrize(
|
||||
"endringer", [{}, {"T_slutt": 2045, "u_xi": 0.1}, {"L_N": 12.0, "L_B": 7.0}]
|
||||
)
|
||||
|
|
@ -666,7 +669,7 @@ def test_private_eiere_betaler_det_andelen_er_verdt(oppdiktet: LagInndata) -> No
|
|||
assert lav[0].NV_stat > utfall[0].NV_stat
|
||||
|
||||
|
||||
@pytest.mark.parametrize("losning", list(Losning))
|
||||
@pytest.mark.parametrize("losning", I_KONTANTSTROMMEN)
|
||||
def test_anleggenes_kontantstrom_summerer_seg_til_programmets(
|
||||
oppdiktet: LagInndata, losning: Losning
|
||||
) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue