Skip to content

Commit

Permalink
Exclude lookahead of 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
prakaa committed Aug 13, 2024
1 parent a89f3de commit ae043c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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
8 changes: 5 additions & 3 deletions results/standard_vs_apb_results.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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[])
Expand All @@ -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")
Expand Down

0 comments on commit ae043c6

Please sign in to comment.