feat(kode): add the build-out, the power system and the cash flow
- utbygging.py: when each facility starts and which vintages of IT hardware it gets (S22, S33), with chips as a stock, replacement before new facilities and the export rule. - kraftsystem.py: the fitted price lines and the power and capacity balances year by year (S23, S24, S25, S38). - kontantstrom.py: the yearly cash flows per facility, the additionality rule by iteration, the residual value and the net present value for Norway (S26, S34, S35, S40, S45), for the solutions A, B, B', C and R. - hendelser.py and data/aarshendelser.npy: the stream of random numbers for the export rule, one uniform number per draw and year 2028-2100, from its own seed. - inndata.py: one set of values in the units of the equations. - ligninger.py: one function per equation for chapters 4 to 6. Tested on a made-up set of values only (tests/conftest.py); no result for the hypothesis has been computed. 271 tests pass. Seven are documented misses against a source: the five from before, and the price lines for NO3 and NO4, which miss one of NVE's twelve scenarios by 6.0 and 7.7 per cent. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
fd0db8b3d3
commit
5c91cadf4c
15 changed files with 3807 additions and 10 deletions
85
data/aarshendelser.json
Normal file
85
data/aarshendelser.json
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
{
|
||||
"beskrivelse": "Egen strøm av tilfeldige tall for hendelser som trekkes per år (eksportregelen, kapittel 4 i spesifikasjonen). Én rad per trekning, én kolonne per kalenderår. Tallene er jevnt fordelt mellom 0 og 1; en eksportregel innføres i et år når tallet er lavere enn den trukne phi_X.",
|
||||
"tabell": "aarshendelser.npy",
|
||||
"sha256_tabell": "b2a8c282629fea229e5a114506727dcd592c0b2deef95057f276f32fb0dde5f5",
|
||||
"sha256_parametere": "45828355036bb7fc57974bcb4d886ce13dd67a441b4c548836cc184ac3b3f6cc",
|
||||
"antall_trekninger": 10000,
|
||||
"froe": 20261112,
|
||||
"generator": "PCG64 (numpy.random.Generator)",
|
||||
"numpy": "2.5.4",
|
||||
"aar": [
|
||||
2028,
|
||||
2029,
|
||||
2030,
|
||||
2031,
|
||||
2032,
|
||||
2033,
|
||||
2034,
|
||||
2035,
|
||||
2036,
|
||||
2037,
|
||||
2038,
|
||||
2039,
|
||||
2040,
|
||||
2041,
|
||||
2042,
|
||||
2043,
|
||||
2044,
|
||||
2045,
|
||||
2046,
|
||||
2047,
|
||||
2048,
|
||||
2049,
|
||||
2050,
|
||||
2051,
|
||||
2052,
|
||||
2053,
|
||||
2054,
|
||||
2055,
|
||||
2056,
|
||||
2057,
|
||||
2058,
|
||||
2059,
|
||||
2060,
|
||||
2061,
|
||||
2062,
|
||||
2063,
|
||||
2064,
|
||||
2065,
|
||||
2066,
|
||||
2067,
|
||||
2068,
|
||||
2069,
|
||||
2070,
|
||||
2071,
|
||||
2072,
|
||||
2073,
|
||||
2074,
|
||||
2075,
|
||||
2076,
|
||||
2077,
|
||||
2078,
|
||||
2079,
|
||||
2080,
|
||||
2081,
|
||||
2082,
|
||||
2083,
|
||||
2084,
|
||||
2085,
|
||||
2086,
|
||||
2087,
|
||||
2088,
|
||||
2089,
|
||||
2090,
|
||||
2091,
|
||||
2092,
|
||||
2093,
|
||||
2094,
|
||||
2095,
|
||||
2096,
|
||||
2097,
|
||||
2098,
|
||||
2099,
|
||||
2100
|
||||
]
|
||||
}
|
||||
BIN
data/aarshendelser.npy
Normal file
BIN
data/aarshendelser.npy
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue