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

Accessing dual values #841

Closed
gcherot opened this issue Aug 30, 2022 · 2 comments
Closed

Accessing dual values #841

gcherot opened this issue Aug 30, 2022 · 2 comments

Comments

@gcherot
Copy link

gcherot commented Aug 30, 2022

I want to retrieve the dual values associated with each constrain of the OPF (bus min/max voltages, line max loadings...). Is there a way to do that?

I am aware that this question was raised 2 years ago (https://discourse.julialang.org/t/powermodelsannex-jl-obtaining-duals/43535) but since I am a total beginner in Julia (I use the PandaPower interface), I was not able to follow the instruction given by @ccoffrin .

This might also be related to #661 . If so, sorry about the duplicate issue.

Thank you very much for your answer.

@ccoffrin
Copy link
Member

I think the most relevant discussion is here, #409 (comment)

The short answer is that there is partial support for getting duals in PowerModels. Try something like this,

result = run_dc_opf("../test/data/matpower/case5.m", nlp_solver, setting = Dict("output" => Dict("branch_flows" => true, "duals" => true)))

and look for them in the solution dictionary.

If that serves your needs we can close this issue. If not, maybe we can add your feature request to the discussion in #409?

@gcherot
Copy link
Author

gcherot commented Aug 31, 2022

Unfortunately, I need all dual values. For example, I would like to have the dual values associated with voltage constrains.
I close this issue and I will add a feature request in #409.

@gcherot gcherot closed this as completed Aug 31, 2022
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