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

Solving/Updating PowerFlow & check reactive power limits #74

Open
annacasavant opened this issue Jan 8, 2025 · 1 comment · May be fixed by #76
Open

Solving/Updating PowerFlow & check reactive power limits #74

annacasavant opened this issue Jan 8, 2025 · 1 comment · May be fixed by #76
Assignees
Labels
bug Something isn't working

Comments

@annacasavant
Copy link

annacasavant commented Jan 8, 2025

Flagging reactive power limits fails when running solve_ac_powerflow!

check_pf_results(res) && solve_ac_powerflow!(sys, check_reactive_power_limits = false) ERROR: MethodError: no method matching nlsolve(::NLSolversBase.OnceDifferentiable{…}, ::Vector{…}; check_reactive_power_limits::Bool) This error has been manually thrown, explicitly, so the method may exist but be intentionally marked as unimplemented.

@GabrielKS GabrielKS self-assigned this Jan 8, 2025
@GabrielKS
Copy link
Contributor

The immediate issue is that we pass all kwargs to NLSolve, incorrectly including check_reactive_power_limits. There is a more subtle issue in that if we detect a reactive power limits violation and resolve it by changing the bus type from PV to PQ and re-solving, that change doesn't get written back to the System. Here, I fix both of those.

@GabrielKS GabrielKS added the bug Something isn't working label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants