Closed Yiwen233 closed 1 year ago
Hey,
maybe the OPF tutorial helps you with that problem.
https://github.com/e2nIEE/pandapower/blob/master/tutorials/opf_basic.ipynb
Also you specified only costs for the ext_grid and the gen but not for the loads (which are controllable).
https://pandapower.readthedocs.io/en/v2.13.1/opf/formulation.html#cost-functions
Best regards Jan
I already read the tutorials about opf calculation. I add min_vm_pu and max_vm_pu to buses, max_loading_percent to lines, and set load controllable=False, but runopp() still does not work.
Seems like the defined optimization problem is then not solvable with your parameter set up. Try to play arround with the parameters. Run a normal power flow and check the results / loadings and then adapt the constraints or parameters and run an opf again.
The convergence of the pypower OPF isn't that good.
I found that if p_mw of all gens and sgens are determined, then runopf() is not necessary, and actully it will not converge, runpp() is needed only and compute the cost manually.
I just tried it: set all the needed constraints as mentioned in the documentation and the tutorial and set calculate_voltage_angles=True
then the OPF converges. :)
I just tried it: set all the needed constraints as mentioned in the documentation and the tutorial and set
calculate_voltage_angles=True
then the OPF converges. :)See #489
alright, I found the problem. Thanks
Running OPF with pandapower do not convege!
I implement ieee15bus, and add two distributed generator and one pv on three different buses, and several storages as well. I found that the opf just not convege regardless of load tuning. Then I try to cut the storages and remain only one generator in the system, the result is still the same. I run PF in all conditions and it works, except OPF. So any one can help me what I should do ?
The load are modified manually in the following:
runpp():
runopp():