Convergence issue of pypower

9 views
Skip to first unread message

Min Zhou

unread,
Dec 24, 2024, 5:42:15 AM12/24/24
to pyp...@googlegroups.com
Dear Pypower community,

I hope this email finds you well.

Currently, I am using pypower to solve the optimal power flow problem.
However, I found that the OPF solver does not converge. I ran the
following toy example and found that it does not converge:

from pypower.api import case9, runopf, printpf, opf

# Get the case data (case9)
ppc = case9()

# Run the Optimal Power Flow
results = opf(ppc)

# Check if the OPF was successful
if results['success']:
# Print the results
printpf(results)
else:
print("OPF did not converge successfully.")


I run the same code in Matpower, and it converges. Thus, I was
wondering how to address this issue.

Thank you very much for your help.

Best regards.



--
Min ZHOU
School of Data Science
City University of Hong Kong
Reply all
Reply to author
Forward
0 new messages