Repository navigation
Feat/dynamic spatial temporal risk - #16
Open
BurhanAbdullah wants to merge 5 commits into
Open
BurhanAbdullah wants to merge 5 commits into
BurhanAbdullah wants to merge 5 commits into
Conversation
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.
Purpose
Existing aggregate voltage-violation metrics can obscure whether a disturbance is localized to a few buses or widespread across the network, and whether violations are brief or persistent. This contribution adds complementary spatial-temporal diagnostics for analyzing voltage-risk patterns in PowerAgentBench's Level 2 dynamic benchmark.
Changes and scope
Adds three files under
benchmarks/dynamic/level2/:spatial_temporal_risk.py— standalone metrics for spatial voltage-violation exposure, affected-bus fractions, upper-tail violation severity, and longest contiguous sampled violation duration.test_spatial_temporal_risk.py— synthetic unit tests covering risk patterns, time sampling, and input validation.SPATIAL_TEMPORAL_RISK.md— documentation of the metrics and their manual use.The implementation supplements existing diagnostics; it does not modify the benchmark's current scoring path or simulator execution.
Validation
Tested revision:
92473e156c1bdce343fa1dd441d5c9e37da5ae33CI status:All five GitHub checks passed on the current PR, as shown in the PR Checks section.
Test scope:The contribution includes synthetic unit tests for the new metrics. Passing CI does not imply that a full transient-stability simulation was run or that the metrics have been validated against real benchmark trajectories.
Validation not performed: No empirical comparison on representative real simulation trajectories or assessment of changes to agent rankings is claimed.
Benchmark and compatibility impact
No changes to existing benchmark scores, generator-speed instability detection, simulator execution, or dependencies are intended. The new metrics provide supplementary diagnostic outputs and do not alter existing benchmark results. No reference simulation outputs were regenerated.