Hi all,
I am trying to run dc flow on case 14, and the code fails, yet it works with ac flow. I am using Version 5.1.17, 02-Sept-2024.
Any help will be appreciated.
bash-3.2$ venv/bin/pf --pf_dc=false -o out.txt -c case14
PYPOWER Version 5.1.17, 02-Sept-2024 -- AC Power Flow (Newton)
Newton's method power flow converged in 2 iterations.
bash-3.2$ venv/bin/pf --pf_dc=true -c case14
PYPOWER Version 5.1.17, 02-Sept-2024 -- DC Power Flow
Traceback (most recent call last):
File "/Users/pinar1/venv/bin/pf", line 8, in <module>
sys.exit(pf())
File "/Users/pinar1/venv/lib/python3.9/site-packages/pypower/main.py", line 174, in pf
_, success = runpf(casedata, ppopt, fname, solvedcase)
File "/Users/pinar1/venv/lib/python3.9/site-packages/pypower/runpf.py", line 126, in runpf
Va = dcpf(B, Pbus, Va0, ref, pv, pq)
File "/Users/pinar1/venv/lib/python3.9/site-packages/pypower/dcpf.py", line 34, in dcpf
Va[pvpq] = pplinsolve(B[pvpq.T, pvpq], transpose(Pbus[pvpq] - B[pvpq.T, ref] * Va0[ref]))
ValueError: shape mismatch: value array of shape (13,1) could not be broadcast to indexing result of shape (1,13)
bash-3.2$