forked from zclawr/deep-wind-model-dispatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmp_pdf_text.txt
More file actions
1384 lines (730 loc) · 28 KB
/
Copy pathtmp_pdf_text.txt
File metadata and controls
1384 lines (730 loc) · 28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--- PAGE 1 ---
FORECAST-AWARE ROLLING-HORIZON OPTIMIZATION FOR CONSTRAINED HYBRID
WIND-STORAGE
DISPATCH
David Valenta
1
North
Carolina
State
University
Raleigh,
NC,
USA
dvalent2@ncsu.edu
Chris Qin
2
Washington
State
University
Vancouver,
WA,
USA
chris.qin@wsu.edu
ABSTRACT Hybrid wind farms can either sell wind power immediately or store energy for later hours when market value may be higher. The hard part is that the controller must make those decisions before future wind generation and electricity prices are known. This paper presents a forecast-aware rolling-horizon dispatch framework for the Pyron wind farm case study using raw ERCOT locational marginal price data and compressed-air energy storage assumptions from PNNL. The method uses causal ridge regression to predict wind power, then solves a constrained mixed-integer linear program in Gurobi to choose direct wind delivery, charging, discharging, curtailment, and state of charge. The storage model enforces wind-only charging, no grid charging, grid export limits, storage power limits, state-of-charge bounds, no simultaneous charging and discharging, and chronological state carryover. The best forecasting model achieved 21.24 MW RMSE and 13.62 MW MAE on the common comparison set. The best deterministic rolling-horizon controller used a 48-hour planning window and reduced COVE by 6.25% relative to baseload. Adding uncertainty-aware forecast scenarios improved the best tested deployable case to 23.19% COVE reduction and 30.19% revenue gain over baseload; seven scenarios remained close at 23.03% COVE reduction. The perfect-information oracle upper bound reached 32.83% COVE reduction. The results show that storage value depends on forecast quality, horizon length, scenario design, and physical constraints together rather than on any single model component.
[1,2,3,4,5]
Keywords: wind-storage dispatch; rolling horizon; mixed-integer linear programming; ridge regression; ERCOT; CAES; COVE.
1. INTRODUCTION A wind farm with storage is more flexible than a wind farm alone. Without storage, wind is sold when it is generated. With storage, part of the wind can be held and sold later. This creates a planning problem: the controller has to decide whether energy should be delivered directly, stored, released, or curtailed.
[1,2]
The planning problem is difficult because both wind generation and electricity price move through time. A perfect future-knowing optimizer can always look ahead and choose the best hours. A real controller cannot do that. It must use forecasts, update the battery state after real operation, and then solve again.
[5,6]
This paper frames the project as a ladder. First, the forecast model is tested by comparing predicted wind power to realized wind power. Second, the best forecast is passed to a deterministic rolling-horizon Gurobi dispatcher. Third, the dispatcher is upgraded with multiple forecast scenarios to account for uncertainty. Finally, an oracle case is reported only as an upper bound, not as a realistic controller.
Figure 1: End-to-end pipeline. The forecast supplies the information, Gurobi solves the
dispatch
plan,
storage
carries
energy
across
time,
and
the
grid
receives
delivered
power.
Figure 2: Information cases used in the paper. Baseload is the reference case, causal and
scenario
cases
are
realistic,
and
oracle
is
only
an
upper
bound.
The main claim is therefore not that one fixed horizon always wins. The main claim is that hybrid wind-storage dispatch should be evaluated as an information system. The same physical battery can look valuable, weak, or nearly optimal depending on what the controller knows and how often it replans. This is why the paper reports forecasting accuracy, deterministic horizon results, scenario results, and oracle upper-bound results together.
Table
1:
Paper
ladder
and
what
each
layer
changes.
Layer
Question
answered
Baseload
What happens if the farm does not strategically shift
storage?
Forecast
model
Which causal model predicts wind power best before
dispatch?
--- PAGE 2 ---
Rolling
horizon
How far should Gurobi look ahead with imperfect
forecasts?
Scenarios
Does planning over several plausible futures improve
robustness?
Oracle
How much value is available if future uncertainty
disappeared?
2. SYSTEM AND DATA The case study is the Pyron wind farm in West Texas. The energy value is computed using raw ERCOT locational marginal price data, where LMP is the market price in USD/MWh at a specific grid location and hour. Storage parameters are based on compressed-air energy storage because the prior storage comparison made CAES a strong candidate for long-duration shifting.
[2,3]
Table
1:
Main
input
data
and
assumptions.
Item
Value
Wind
generation
Pyron
hourly
generation
Market
value
raw
ERCOT
LMP,
USD/MWh
Storage
type
CAES-equivalent
storage
Grid
export
limit
249
MW
Charging
source
wind
only
Optimizer
Gurobi
MILP
Comparison
point
baseload
Baseload is the reference case. It means the wind farm follows a fixed direct-delivery rule without strategic storage shifting. Every improvement percentage in the dispatch sections is reported relative to that baseload case. The paper uses revenue and COVE in a careful way. Revenue is a dollar value or revenue metric produced by each result runner. COVE is the cost of valued energy: it goes down when more energy is delivered during valuable price hours. Because the deterministic rolling-horizon and scenario runners store revenue on different reporting scales, the safest cross-proposal comparison is the percent improvement over baseload inside each block. Within each block, the revenue and COVE numbers are directly comparable.
Figure 3: Revenue and COVE calculation. Realized delivered power and raw realized
LMP
determine
hourly
value;
COVE
improves
when
valued
delivered
energy
increases.
3. FORECASTING LAYER The forecast model used in the final ladder is causal ridge regression. Causal means the model only uses information that would be available before the operating hour. Ridge regression is a linear model with a penalty that prevents the coefficients from becoming too large. In plain terms, it learns a stable relationship between recent wind behavior and future wind power.
[7,8]
The forecast comparison was kept separate from dispatch so the first question could be answered cleanly: which wind power model gives the best power prediction? The causal ridge model achieved the lowest common-set RMSE at 21.24 MW and MAE at 13.62 MW, beating lag-1 persistence, a power-curve model, and the earlier diagnostic prediction files. RMSE means root mean squared error. It measures how far the prediction is from the actual wind power, with large mistakes punished strongly. MAE means mean absolute error. It measures the average size of the miss. A lower RMSE and MAE means the forecast gives Gurobi a better picture of the future.
Figure 4: Forecast methods in plain terms. The final dispatch ladder uses causal ridge
because
it
had
the
strongest
common-set
forecast
accuracy.
--- PAGE 3 ---
Figure 5: Forecast model RMSE comparison. The causal ridge forecast has the lowest
error,
so
it
is
used
as
the
forecast
input
for
the
dispatch
experiments.
Table
2:
Forecast
methods
compared
before
dispatch.
Method
What
it
means
Causal
ridge
learns
from
past
wind/power
values
only;
no
future
leakage
Lag-1
persistence
assumes
the
next
value
is
close
to
the
most
recent
value
Power
curve
maps wind speed to power using a fixed physics-style
curve
Prior
NQF/RNN
files
older neural-network diagnostic outputs used only as
comparison
The important point is that the forecasting experiment is not a dispatch result by itself. Forecasting is the first rung of the ladder because it decides what information Gurobi receives. If the forecast is weak, the optimizer can still produce a mathematically valid plan, but that plan may be valid for the wrong future.
Figure 6: Train, validation, and test RMSE. The causal ridge model stays stable across
data
splits,
which
is
why
it
was
selected
for
the
dispatch
ladder.
The example week shows the practical meaning of the forecast error. The model usually follows the broad shape of the wind, but it cannot know every sudden jump or drop. Dispatch must therefore be able to recover from missed peaks, missed valleys, and wrong timing.
Figure 7: Example week of actual and predicted power. The forecast follows the main wind pattern but still misses some peaks and dips, which motivates rolling-horizon
replanning.
4. DISPATCH OPTIMIZATION After forecasting, dispatch is solved as a mixed-integer linear program. Mixed-integer means some variables are continuous, such as MW charged or discharged, while one variable is binary, meaning storage must choose a mode. The model cannot charge and discharge at the same time.
[5,6,9]
Revenue = sum_t lambda_t P_del(t) (1) COVE = Cost / sum_t lambda_t P_del(t) (2) SoC(t+1) = SoC(t) + eta P_ch(t) - P_dis(t) (3) Revenue is computed from realized delivered power multiplied by realized raw LMP. COVE is lower when the same fixed cost is supported by more price-weighted delivered energy. Therefore, higher revenue and lower COVE usually point in the same direction, but COVE is the main storage-value metric used for comparison. In code form, the calculation is simple: for each hour, the simulator records delivered power after the storage constraints are applied, multiplies that realized delivered power by the realized hourly price, and sums the result over the test period. COVE uses the same realized delivered power in the denominator, weighted by price. This makes the metric reward energy delivered in valuable hours more than energy delivered in low-price hours.
--- PAGE 4 ---
Figure 8: Constraint summary. These rules prevent the optimizer from creating
physically
impossible
storage
behavior.
Table
3:
Key
decision
variables.
Variable
Meaning
P_dir(t)
wind
sent
directly
to
the
grid
P_ch(t)
wind
used
to
charge
storage
P_dis(t)
stored
energy
released
P_del(t)
total
delivered
power
SoC(t)
storage
energy
level
before
hour
t
u(t)
charge/discharge
mode
The direct-wind variable is important because not all wind automatically becomes sold energy. Some wind may be used to charge storage, some may be delivered directly, and some may be curtailed if the plan or grid limit does not allow it. This prevents the model from receiving free extra revenue during realized execution.
5. ROLLING-HORIZON EXECUTION A rolling horizon solves a future planning window but executes only the first short part of the plan. Then the real battery state is updated and the problem is solved again. This matters because forecasts become less trustworthy farther into the future.
Figure 9: One rolling-horizon step. The optimizer solves ahead, executes only the first
step,
carries
the
realized
SoC
forward,
and
repeats.
The deterministic rolling-horizon sweep tested 24, 48, 72, and 168 hours using the selected causal ridge forecast. The best deployable deterministic case was 48 hours, with 6.25% COVE reduction and $7.61M in the reported revenue metric. The 168-hour case was worse under forecasts because it optimized too far into uncertain information. This is the main mechanism behind the rolling-horizon result. A 24-hour horizon is sometimes too short because the controller cannot see enough future price movement to justify charging. A 168-hour horizon sees more future hours, but those future hours are forecasted and therefore contain more error. The 48-hour case was the best compromise in the deterministic test.
Table
4:
Deterministic
rolling-horizon
revenue
and
COVE.
Case
Revenue
COVE
COVE
gain
Baseload
$7.13M
7.274
0.00%
24
h
$7.38M
7.033
3.31%
48
h
$7.61M
6.819
6.25%
72
h
$7.59M
6.833
6.06%
168
h
$7.54M
6.878
5.44%
--- PAGE 5 ---
Figure 10: Deterministic rolling-horizon result. The 48-hour window performs best
because
it
looks
ahead
enough
to
use
storage
but
not
so
far
that
forecast
error
dominates.
Figure 11: Revenue and COVE for the deterministic rolling-horizon proposal. Compared with baseload, 48 hours gives the best COVE reduction and highest deterministic rolling
revenue
metric.
Figure 12: Deterministic horizon scorecard. The table-style figure reports revenue,
COVE,
and
COVE
gain
for
each
planning
horizon.
6. SCENARIO-AWARE DISPATCH A single forecast gives one future path. Scenario-aware dispatch gives the optimizer several plausible futures. The purpose is not to predict the exact future perfectly. The purpose is to choose storage actions that are still good across different possible wind and price outcomes.
[10,11]
Figure 13: Scenario logic. The shaded band represents several possible futures around a
middle
forecast;
the
optimizer
chooses
actions
that
work
well
across
the
band.
The scenario sweep tested 1, 3, 5, 7, and 10 scenarios using the selected forecast and a 48-hour planning window. The best tested result was the three-scenario case: 30.19% revenue gain and 23.19% COVE reduction over baseload. The seven-scenario case was very close at 29.92% revenue gain and 23.03% COVE reduction. Ten scenarios performed worse because the controller became too conservative and missed some valuable dispatch opportunities.
Table
5:
Scenario
cases
tested.
Case
Purpose
1
scenario
single
forecast
path
3
scenarios
small
uncertainty
band;
best
tested
5
scenarios
adds
more
high/low
combinations
7
scenarios
larger
uncertainty
set;
nearly
tied
with
best
10
scenarios
widest
tested
set;
became
too
conservative
Table
6:
Scenario
revenue
and
COVE.
Case
Revenue
COVE
COVE
gain
Baseload
$271.87M
0.216
0.00%
1
$337.32M
0.174
19.40%
3
$353.95M
0.166
23.19%
5
$353.12M
0.166
23.01%
7
$353.22M
0.166
23.03%
10
$341.86M
0.172
20.47%
--- PAGE 6 ---
More scenarios do not automatically mean better performance. A small number of scenarios can protect the plan against obvious forecast misses. Too many scenarios can make the plan hedge against extreme cases that do not occur often enough to justify the lost revenue.
Figure 14: Scenario count comparison. Three scenarios produced the best tested COVE
result;
seven
scenarios
was
nearly
tied,
while
ten
scenarios
over-hedged.
Figure 15: Revenue and COVE for the scenario proposal. Scenario dispatch beats
baseload
in
both
revenue
and
COVE,
with
the
strongest
tested
case
at
three
scenarios.
Figure 16: Scenario scorecard. The table-style figure compares revenue gain and COVE
gain
for
the
tested
scenario
counts.
Figure 17: Revenue-COVE tradeoff. Points farther up and to the right improve both
revenue
and
COVE
relative
to
baseload.
--- PAGE 7 ---
Figure 18: Representative week for the best scenario case. The bottom panel shows
chronological
state
of
charge
staying
inside
the
storage
limits.
7. ORACLE UPPER BOUND The oracle case gives Gurobi the realized future wind and realized future price. This is not a real-life controller because it knows the future. It is included only to show the upper bound: how much value would be available if forecast error disappeared. The oracle result increased as the horizon grew. The best oracle case used a 168-hour horizon and reached 32.83% COVE reduction over baseload. This is the ceiling that the realistic causal controllers are trying to approach.
Table
7:
Oracle
upper-bound
revenue
and
COVE.
Case
Revenue
COVE
COVE
gain
Baseload
$7.13M
7.274
0.00%
24