From ae043c6d535735c4e98fc00767b741fdafc4a02d Mon Sep 17 00:00:00 2001 From: prakaa Date: Tue, 13 Aug 2024 12:13:27 +1000 Subject: [PATCH] Exclude lookahead of 5 minutes --- .../negrev_charge_improvement_by_duration.csv | 12 ++++++------ results/standard_vs_apb_results.jl | 8 +++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/results/data/actual-prices-binding/negrev_charge_improvement_by_duration.csv b/results/data/actual-prices-binding/negrev_charge_improvement_by_duration.csv index a96f723..a53caf7 100644 --- a/results/data/actual-prices-binding/negrev_charge_improvement_by_duration.csv +++ b/results/data/actual-prices-binding/negrev_charge_improvement_by_duration.csv @@ -1,6 +1,6 @@ -duration,mean_neg_rev_charge_500_improvement,median_neg_rev_charge_500_improvement -4.0,0.06988871072400453,0.05751994446795883 -2.0,0.08009472239841318,0.05723043910528226 -1.0,0.08309918709116094,0.06279097534643717 -0.5,0.09958856779611003,0.09923078409293953 -0.25,0.13941711977521143,0.13776611843267747 +duration,mean_neg_rev_charge_500_improvement_lkgt5,median_neg_rev_charge_500_improvement_lkgt5 +4.0,0.07987281225600516,0.09017987177849954 +2.0,0.09153682559818649,0.06814759720586812 +1.0,0.09497049953275537,0.06392180495285879 +0.5,0.11381550605269719,0.10077177225582673 +0.25,0.1593338511716702,0.14863206618702257 diff --git a/results/standard_vs_apb_results.jl b/results/standard_vs_apb_results.jl index d27b41f..992b58b 100644 --- a/results/standard_vs_apb_results.jl +++ b/results/standard_vs_apb_results.jl @@ -115,10 +115,12 @@ end """ Produce negative revenue from charging metrics by storage duration + +Excludes lookahead of 5 minutes """ function summarise_duration_metrics(all_metrics::Array{DataFrame}) function _filter_results!(df::DataFrame) - filtered = df[df.lookahead.!=="Perfect Foresight", :] + filtered = df[(df.lookahead.!=="Perfect Foresight").&(df.lookahead.!=="5"), :] return filtered end duration_datalists = (DataFrame[], DataFrame[], DataFrame[], DataFrame[], DataFrame[]) @@ -144,8 +146,8 @@ function summarise_duration_metrics(all_metrics::Array{DataFrame}) end return DataFrame( :duration => durations_hours, - :mean_neg_rev_charge_500_improvement => mean_charge_500_improvement, - :median_neg_rev_charge_500_improvement => median_charge_500_improvement, + :mean_neg_rev_charge_500_improvement_lkgt5 => mean_charge_500_improvement, + :median_neg_rev_charge_500_improvement_lkgt5 => median_charge_500_improvement, ) end merged = merge_summary_data("results/data/NSW_summary_results.jld2", "results/data/actual-prices-binding/NSW_summary_results_apb.jld2")