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

Add Storage Variables in build_opf #926

Closed
BeccyGitHub opened this issue Sep 4, 2024 · 2 comments
Closed

Add Storage Variables in build_opf #926

BeccyGitHub opened this issue Sep 4, 2024 · 2 comments

Comments

@BeccyGitHub
Copy link

Currently, PowerModels gives an error like "does not find active power of storage", so it cannot do the OPF computation.

I added the already existing function "variable_storage_power(pm)" in "opf.jl/build_opf", which is working.
I'm just not sure if it needs to be added anywhere else.

Could you add that in the repo? Thanks!

@ccoffrin
Copy link
Member

ccoffrin commented Sep 6, 2024

You should call one of these OPF variants to consider the storage data, https://github.com/lanl-ansi/PowerModels.jl/blob/master/src/prob/test.jl#L402-L495

In the modeling layer you need to add both the storage variables but also the constraints.

@BeccyGitHub
Copy link
Author

Thanks! It's weird.. I called "_solve_opf_str" and I see that in "PowerModels/Dhfhc/src/prob/test.jl" it uses the "_build_opf_strg", but somehow it used "build_opf" instead.. Now it miraculously works though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants