Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinforced Transmission Within State #181

Merged
merged 18 commits into from
May 19, 2023

Conversation

ppinchuk
Copy link
Collaborator

Added option to allow supply curve points to connect to substations within a state and substations to connect to endpoints within a state (as opposed to strictly within their BA) when computing network reinforcement costs. This alleviates some of the fictitious cost boundaries that were observed in supply curve LCOT's that corresponded to (pretty much arbitrary) ReEDS BA boundaries.

Also addressed some issues with clipping radius that @WilliamsTravis discovered when he ran LCP for Alaska.

This PR also fixes #175

@ppinchuk ppinchuk added the feature New feature or request label May 16, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 16, 2023

Codecov Report

Merging #181 (ace5805) into main (9423c6c) will increase coverage by 0.16%.
The diff coverage is 79.33%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
+ Coverage   80.99%   81.16%   +0.16%     
==========================================
  Files         111      111              
  Lines       13075    13159      +84     
==========================================
+ Hits        10590    10680      +90     
+ Misses       2485     2479       -6     
Flag Coverage Δ
unittests 81.16% <79.33%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
reVX/least_cost_xmission/least_cost_xmission.py 90.16% <43.75%> (-1.23%) ⬇️
reVX/least_cost_xmission/least_cost_paths_cli.py 74.40% <50.00%> (+0.62%) ⬆️
...eVX/least_cost_xmission/least_cost_xmission_cli.py 52.31% <50.00%> (+0.62%) ⬆️
reVX/config/least_cost_xmission.py 98.58% <100.00%> (+0.06%) ⬆️
reVX/least_cost_xmission/least_cost_paths.py 97.80% <100.00%> (+0.09%) ⬆️
tests/test_xmission_least_cost.py 94.38% <100.00%> (+0.47%) ⬆️
tests/test_xmission_least_cost_paths.py 96.22% <100.00%> (+0.51%) ⬆️

... and 7 files with indirect coverage changes

grantbuster
grantbuster previously approved these changes May 17, 2023
Copy link
Member

@grantbuster grantbuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine and makes sense, but im wondering if there's a way to make this more generic... Now we're doing within states... tomorrow will be within countries when we run an international workflow... Should we consider a distance threshold?

@ppinchuk
Copy link
Collaborator Author

There actually already is a "radius" option to limit the connections to a certain distance. Besides that, I think it may be difficult to limit connections to arbitrary shapes no? Hmmmm I guess it could be doable if we allow a "boundary" shapefile input or something. That could work for sure.

Not sure if there is funding/appetite for such a change at the moment, but perhaps this is the correct way to go if people change their mind again in the future. I will add it to my list of potential LCP calculation improvements

@ppinchuk ppinchuk merged commit 5e9f182 into main May 19, 2023
5 checks passed
@ppinchuk ppinchuk deleted the pp/reinforced_transmission_within_state branch May 19, 2023 19:40
github-actions bot pushed a commit that referenced this pull request May 19, 2023
…tate

Reinforced Transmission Within State
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save paths in least_cost_paths_cli and least_cost_xmission_cli not working
3 participants