Added notebook to sample from predictions and load model
This commit is contained in:
@@ -11,7 +11,9 @@ Eerst literatuur bekijken ofdat probleem al voorkomt
|
||||
- Training data -> 2 tresholds (1 voor charging, 1 voor discharging) (Volledig chargen / dischargen)
|
||||
- 2 Mwh -> 8 kwartieren
|
||||
|
||||
- 1000 generaties voor 1 dag -> 1000 prijzen reconstrueren -> tresholds bepalen (logische tresholds) -> 2 tresholds voor 1 dag en toepassen op volledige test set
|
||||
2 MWh -> 0.25 MW per kwartier -> charge cycle: 4 MWh -> 16 kwartieren iets doen -> dan charge cycle (max 400 per jaar voor later)
|
||||
|
||||
- 1000 generaties voor 1 dag uit test set -> 1000 prijzen reconstrueren -> tresholds bepalen (logische tresholds) -> 2 tresholds voor 1 dag en toepassen op de echte prijzen van de dag
|
||||
|
||||
- [x] Learning rate non autoregressive
|
||||
|
||||
@@ -28,6 +30,38 @@ Eerst literatuur bekijken ofdat probleem al voorkomt
|
||||
|
||||
- [ ] Diffusion vs Variable Selection Network
|
||||
|
||||
- [x] Bid ladder van gisteren
|
||||
- [ ] Plot van reconstucted prices with real bid ladder + bid ladder from yersterday against real reconstructed prices
|
||||
|
||||
|
||||
Presentatie:
|
||||
- Korte motivatie -> op dit moment: veel batterijen op simpele manier zoals onze baseline
|
||||
- Policy per dag afhankelijk van generation model (policy word day ahead vastgelegd)
|
||||
|
||||
~~- NRV -> resultaten van verschillende resultaten (verder werken met autoregresive om te kunnen samplen)
|
||||
-> ook overconfidence tonen van de quantiles (met die histogram)~~
|
||||
|
||||
~~- Quantile regreession + figuur van CDF
|
||||
Resultaten van de autoregression modellen~~
|
||||
|
||||
- Plot van CRPS (kijk teams)
|
||||
|
||||
~~- Prijs reconstructie + momenteel bid ladders geplubliceerd door Elia momenteel. (paar plotjes)~~
|
||||
|
||||
~~- Baseline Policy voor batterij~~
|
||||
|
||||
- (Resultaten van nieuwe methode met samplen)
|
||||
|
||||
~~- Volgende stappen:~~
|
||||
~~3 mogelijkheden:~~
|
||||
~~- bid ladders (niet echt doen)~~
|
||||
~~- Generaties beter van NRV -> quantile regression + overconfidence fixen (+ betere modellen)
|
||||
Diffusion model is er een van en niet probleem van autoregressive~~
|
||||
|
||||
~~- Betere RL modellen (policies)~~
|
||||
|
||||
(mag 20 minuten zijn)
|
||||
|
||||
# Different Model Architectures (For Quantile Regression)
|
||||
## Baseline
|
||||
The baseline just calculates the values for the given quantiles using the training data.
|
||||
|
||||
@@ -10,72 +10,57 @@ Determining 2 thresholds for battery charging and discharging. Charging when the
|
||||
Training data: 01-01-2020 - 31-12-2022
|
||||
Test data: 01-01-2023 - 12-12-2023
|
||||
|
||||
| Charging threshold (€/MWh) | Discharge threshold (€/MWh) | Profit (€) | Charge Cycles |
|
||||
------------------:|---------------------:|---------------:|----------------:|
|
||||
| 150 | 100 | 366406 | 2658 |
|
||||
| 150 | 50 | 366406 | 2658 |
|
||||
| 150 | 0 | 366406 | 2658 |
|
||||
| 150 | 150 | 365999 | 2639 |
|
||||
| 100 | 150 | 364905 | 2306 |
|
||||
| 100 | 100 | 364483 | 2886 |
|
||||
| 100 | 0 | 364376 | 2896 |
|
||||
| 100 | 50 | 364376 | 2896 |
|
||||
| 200 | 150 | 352953 | 2416 |
|
||||
| 200 | 100 | 352953 | 2416 |
|
||||
| 200 | 50 | 352953 | 2416 |
|
||||
| 200 | 0 | 352953 | 2416 |
|
||||
| 200 | 200 | 352811 | 2413 |
|
||||
| 150 | 200 | 350975 | 2243 |
|
||||
| 100 | 200 | 345855 | 1929 |
|
||||
| 50 | 50 | 341569 | 3864 |
|
||||
| 50 | 100 | 341421 | 2357 |
|
||||
| 50 | 0 | 341202 | 3865 |
|
||||
| 200 | 250 | 337567 | 1996 |
|
||||
| 50 | 150 | 330189 | 1815 |
|
||||
| 150 | 250 | 329684 | 1835 |
|
||||
| 200 | 300 | 329343 | 1610 |
|
||||
| 250 | 250 | 323456 | 2089 |
|
||||
| 250 | 0 | 322692 | 2103 |
|
||||
| 250 | 150 | 322692 | 2103 |
|
||||
| 250 | 50 | 322692 | 2103 |
|
||||
| 250 | 100 | 322692 | 2103 |
|
||||
| 250 | 200 | 322692 | 2103 |
|
||||
| 250 | 300 | 321378 | 1685 |
|
||||
| 100 | 250 | 319651 | 1554 |
|
||||
| 150 | 300 | 319089 | 1462 |
|
||||
| 300 | 250 | 314776 | 1752 |
|
||||
| 300 | 50 | 314776 | 1752 |
|
||||
| 300 | 100 | 314776 | 1752 |
|
||||
| 300 | 150 | 314776 | 1752 |
|
||||
| 300 | 200 | 314776 | 1752 |
|
||||
| 300 | 0 | 314776 | 1752 |
|
||||
| 50 | 200 | 313685 | 1476 |
|
||||
| 300 | 300 | 313469 | 1749 |
|
||||
| 100 | 300 | 309773 | 1236 |
|
||||
| 200 | 350 | 306832 | 1341 |
|
||||
| 250 | 350 | 302349 | 1411 |
|
||||
| 150 | 350 | 295917 | 1202 |
|
||||
| 300 | 350 | 290570 | 1466 |
|
||||
| 50 | 250 | 290097 | 1195 |
|
||||
| 350 | 300 | 284856 | 1507 |
|
||||
| 350 | 250 | 284856 | 1507 |
|
||||
| 350 | 150 | 284856 | 1507 |
|
||||
| 350 | 100 | 284856 | 1507 |
|
||||
| 350 | 50 | 284856 | 1507 |
|
||||
| 350 | 0 | 284856 | 1507 |
|
||||
| 350 | 200 | 284856 | 1507 |
|
||||
| 100 | 350 | 284323 | 996 |
|
||||
| 50 | 300 | 280922 | 954 |
|
||||
| 350 | 350 | 279834 | 1496 |
|
||||
| 0 | 150 | 277863 | 1243 |
|
||||
| 0 | 100 | 276435 | 1477 |
|
||||
| 0 | 200 | 270056 | 1080 |
|
||||
| 0 | 50 | 269265 | 1914 |
|
||||
| 50 | 350 | 259569 | 787 |
|
||||
| 0 | 250 | 258282 | 908 |
|
||||
| 0 | 300 | 250679 | 741 |
|
||||
| 0 | 0 | 248357 | 2065 |
|
||||
| 0 | 350 | 233775 | 624 |
|
||||
| | Charge treshold | Discharge treshold | Charging Cost | Discharging Profit | Total Profit | Charge cycles | Mean charging price | Mean discharging price |
|
||||
|---:|------------------:|---------------------:|----------------:|---------------------:|---------------:|----------------:|----------------------:|-------------------------:|
|
||||
| 0 | 150 | 100 | 184072 | 1.03303e+06 | 848962 | 1884.62 | 32.4889 | 332.002 |
|
||||
| 0 | 150 | 0 | 184072 | 1.03303e+06 | 848962 | 1884.62 | 32.4889 | 332.002 |
|
||||
| 0 | 150 | -100 | 184072 | 1.03303e+06 | 848962 | 1884.62 | 32.4889 | 332.002 |
|
||||
| 0 | 150 | -50 | 184072 | 1.03303e+06 | 848962 | 1884.62 | 32.4889 | 332.002 |
|
||||
| 0 | 150 | 50 | 184072 | 1.03303e+06 | 848962 | 1884.62 | 32.4889 | 332.002 |
|
||||
| 0 | 150 | 150 | 182152 | 1.02598e+06 | 843824 | 1860.12 | 32.4889 | 333.447 |
|
||||
| 0 | 200 | 150 | 248326 | 1.0773e+06 | 828976 | 1695.5 | 42.9038 | 367.058 |
|
||||
| 0 | 200 | 100 | 248326 | 1.0773e+06 | 828976 | 1695.5 | 42.9038 | 367.058 |
|
||||
| 0 | 200 | 50 | 248326 | 1.0773e+06 | 828976 | 1695.5 | 42.9038 | 367.058 |
|
||||
| 0 | 200 | 0 | 248326 | 1.0773e+06 | 828976 | 1695.5 | 42.9038 | 367.058 |
|
||||
| 0 | 200 | -50 | 248326 | 1.0773e+06 | 828976 | 1695.5 | 42.9038 | 367.058 |
|
||||
| 0 | 200 | -100 | 248326 | 1.0773e+06 | 828976 | 1695.5 | 42.9038 | 367.058 |
|
||||
| 0 | 200 | 200 | 247560 | 1.07529e+06 | 827727 | 1690 | 42.9038 | 367.44 |
|
||||
| 0 | 150 | 200 | 151145 | 937599 | 786454 | 1514.88 | 32.4889 | 367.44 |
|
||||
| 0 | 100 | -100 | 85591.8 | 865530 | 779938 | 1978.12 | 19.9739 | 283.851 |
|
||||
| 0 | 100 | 50 | 85591.8 | 865530 | 779938 | 1978.12 | 19.9739 | 283.851 |
|
||||
| 0 | 100 | 0 | 85591.8 | 865530 | 779938 | 1978.12 | 19.9739 | 283.851 |
|
||||
| 0 | 100 | -50 | 85591.8 | 865530 | 779938 | 1978.12 | 19.9739 | 283.851 |
|
||||
| 0 | 100 | 100 | 84872.7 | 864043 | 779171 | 1966.62 | 19.9739 | 284.61 |
|
||||
| 0 | 100 | 150 | 63807.1 | 802437 | 738630 | 1502.5 | 19.9739 | 333.447 |
|
||||
| 0 | 50 | 50 | -35789.2 | 689455 | 725244 | 2831 | -9.65396 | 204.943 |
|
||||
| 0 | 50 | -100 | -35776.3 | 688933 | 724710 | 2833.88 | -9.65396 | 204.79 |
|
||||
| 0 | 50 | 0 | -35776.3 | 688933 | 724710 | 2833.88 | -9.65396 | 204.79 |
|
||||
| 0 | 50 | -50 | -35776.3 | 688933 | 724710 | 2833.88 | -9.65396 | 204.79 |
|
||||
| 0 | 100 | 200 | 49469.3 | 721380 | 671911 | 1196.12 | 19.9739 | 367.44 |
|
||||
| 0 | 50 | 100 | -46110.5 | 592694 | 638805 | 1417.5 | -9.65396 | 284.61 |
|
||||
| 0 | 50 | 150 | -45858.6 | 531472 | 577330 | 1007.5 | -9.65396 | 333.447 |
|
||||
| 0 | 50 | 200 | -43738 | 473478 | 517216 | 779.25 | -9.65396 | 367.44 |
|
||||
| 0 | 0 | 100 | -97804.3 | 341072 | 438876 | 761.5 | -73.2011 | 284.61 |
|
||||
| 0 | 0 | 50 | -121468 | 314671 | 436139 | 993.625 | -73.2011 | 204.943 |
|
||||
| 0 | 0 | 150 | -85919 | 341046 | 426964 | 635.75 | -73.2011 | 333.447 |
|
||||
| 0 | 0 | 200 | -75822.2 | 328188 | 404010 | 541.25 | -73.2011 | 367.44 |
|
||||
| 0 | 0 | 0 | -135954 | 259915 | 395869 | 1110.12 | -73.2011 | 146.436 |
|
||||
| 0 | 0 | -100 | -136936 | 251758 | 388694 | 1117.5 | -73.2011 | 145.226 |
|
||||
| 0 | 0 | -50 | -136936 | 251758 | 388694 | 1117.5 | -73.2011 | 145.226 |
|
||||
| 0 | -50 | 150 | -97889.1 | 219525 | 317414 | 409.312 | -127.845 | 333.447 |
|
||||
| 0 | -50 | 100 | -108274 | 208273 | 316548 | 458.312 | -127.845 | 284.61 |
|
||||
| 0 | -50 | 200 | -87698.7 | 223235 | 310933 | 363.625 | -127.845 | 367.44 |
|
||||
| 0 | -50 | 50 | -124664 | 184027 | 308691 | 525.688 | -127.845 | 204.943 |
|
||||
| 0 | -50 | 0 | -131679 | 158118 | 289797 | 551.188 | -127.845 | 146.436 |
|
||||
| 0 | -50 | -50 | -138246 | 126218 | 264464 | 576.5 | -127.845 | 136.356 |
|
||||
| 0 | -50 | -100 | -138429 | 125059 | 263488 | 577.625 | -127.845 | 136.262 |
|
||||
| 0 | -100 | 200 | -76499.7 | 137174 | 213674 | 219.625 | -179.829 | 367.44 |
|
||||
| 0 | -100 | 150 | -82202.7 | 128215 | 210418 | 237.125 | -179.829 | 333.447 |
|
||||
| 0 | -100 | 100 | -86319.5 | 117325 | 203645 | 250.25 | -179.829 | 284.61 |
|
||||
| 0 | -100 | 50 | -94055.9 | 99443.5 | 193499 | 269.875 | -179.829 | 204.943 |
|
||||
| 0 | -100 | 0 | -95713.7 | 87279.5 | 182993 | 274.625 | -179.829 | 146.436 |
|
||||
| 0 | -100 | -50 | -97722.9 | 71560.6 | 169283 | 280.375 | -179.829 | 136.356 |
|
||||
| 0 | -100 | -100 | -101133 | 45851.2 | 146985 | 289.375 | -179.829 | 130.542 |
|
||||
|
||||
## Optimal policy
|
||||
Charge threshold: 150 €/MWh \
|
||||
|
||||
Reference in New Issue
Block a user