Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #108 +/- ##
==========================================
+ Coverage 83.13% 83.51% +0.37%
==========================================
Files 45 45
Lines 2325 2426 +101
==========================================
+ Hits 1933 2026 +93
- Misses 392 400 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| # - **LOLE** is the expected number of event-periods | ||
| # - **LOLD** is the expected number of event-days | ||
| # - **LOLEv** is the expected number of adequacy events | ||
| # |
Collaborator
There was a problem hiding this comment.
Are we adding LOLEv to this PR as well or just LOLD?
| # | LOLD | 1 | 10 | | ||
| # | ||
| # As we can see in the table above, even though LOLE and EUE are identical in this case, | ||
| # LOLD reveals that shortfall events are more dispersed in Case B. |
Collaborator
There was a problem hiding this comment.
Can we add a note that LOLD is only callable using Shortfallsamples?
|
|
||
| # This creates a timestamped directory containing a `pras_results.json` | ||
| # file with: | ||
| # - system-level metrics (LOLE, EUE, NEUE) |
| end | ||
| end | ||
|
|
||
| @testset "Multiple shortfall periods in same day count once" begin |
abdelrahman-ayad
requested changes
May 15, 2026
Collaborator
abdelrahman-ayad
left a comment
There was a problem hiding this comment.
Excellent work Akrivi! I left a couple of very minor comments. Can we also include metrics tests in the test/Results/metrics.jl ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR:
Loss of Load Days (LOLD)metric as defined in [1]Mathematical formulation
We define the Loss of Load Days (LOLD) metric as:
where:
and
We note that LOLD is not naturally defined at a single timestamp, since it aggregates over all time periods within a day. As a result, additional computation is needed compared to LOLE, namely:
Benchmarks
Complexity wise, the system wide and full-horizon LOLD scales with total simulation size, while the day-specifc queries scale only with the size of the selected day.
We also provide below a comparison of the benchmarks between LOLD and LOLE:

References:
[1] G. Stephen et al., "Clarifying the Interpretation and Use of the LOLE Resource Adequacy Metric," 2022 17th International Conference on Probabilistic Methods Applied to Power Systems (PMAPS), Manchester, United Kingdom, 2022, pp. 1-4, doi: 10.1109/PMAPS53380.2022.9810615.