-
Notifications
You must be signed in to change notification settings - Fork 10
/
CREATE_FESTIV_OUTPUT_PLOTS.m
53 lines (53 loc) · 1.73 KB
/
CREATE_FESTIV_OUTPUT_PLOTS.m
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
figure
plot(ACE(:,ACE_time_index),ACE(:,2));
title('ACE')
% legend('raw Ace','Continuous integrated ACE','CPS2 ACE')
fig1=gcf;
figure
temp=ACTUAL_GENERATION(:,2:ngen+1);
temp(:,storage_to_gen_index) = temp(:,storage_to_gen_index) - ACTUAL_PUMP(:,2:nESR+1);
plot(ACTUAL_GENERATION(:,1),temp)
title('Actual Generation')
legend(GEN_VAL,'interpreter','none')
fig2=gcf;
figure
plot(DASCUCLMP(:,1),DASCUCLMP(:,2:nbus+1))
title('Day-Ahead prices')
legend(BUS_VAL,'interpreter','none')
fig3=gcf;
figure
plot(RTSCEDBINDINGLMP(:,1),RTSCEDBINDINGLMP(:,2:nbus+1))
title('Real-Time prices')
legend(BUS_VAL,'interpreter','none')
fig4=gcf;
figure
temp=RTSCEDBINDINGSCHEDULE(:,2:ngen+1);
temp(:,storage_to_gen_index) = temp(:,storage_to_gen_index) - RTSCEDBINDINGPUMPSCHEDULE(:,2:nESR+1);
plot(RTSCEDBINDINGSCHEDULE(:,1),temp)
title('RTSCED Schedules')
legend(GEN_VAL,'interpreter','none')
fig5=gcf;
%{
figure
plot(RTSCUCBINDINGSCHEDULE(1:RTSCUC_binding_interval_index-1,1),RTSCUCBINDINGSCHEDULE(1:RTSCUC_binding_interval_index-1,2:ngen+1)-RTSCUCBINDINGPUMPSCHEDULE(1:RTSCUC_binding_interval_index-1,2:ngen+1))
title('RTSCUC Schedules')
legend(GEN_VAL)
%}
figure
temp=DASCUCSCHEDULE(:,2:ngen+1);
temp(:,storage_to_gen_index) = temp(:,storage_to_gen_index) - DASCUCPUMPSCHEDULE(:,2:nESR+1);
plot(DASCUCSCHEDULE(:,1),temp)
title('Day-Ahead Schedules')
legend(GEN_VAL,'interpreter','none')
fig6=gcf;
figure
sumgen = sum(ACTUAL_GENERATION(:,2:ngen+1),2)-sum(ACTUAL_PUMP(:,2:nESR+1),2);
plot(ACTUAL_GENERATION(:,1),sumgen);
hold('on')
line(ACTUAL_GENERATION(1:AGC_interval_index-1,1),ACTUAL_LOAD_FULL(1:AGC_interval_index-1,2)+storelosses(1:AGC_interval_index-1),'color','red');
legend('Total Generation','Total Load')
title('Generation and Load');
fig7=gcf;
pause on;
pause(0.4);
pause off;