e2nIEE / PandaModels.jl

PandaModels is the developing Julia package that contains supplementary data and codes to prepare pandapower networks in a compatible format for PowerModels.jl.
https://e2niee.github.io/PandaModels.jl/dev/
Other
9 stars 11 forks source link

OPF marginal prices #107

Closed Toelloev closed 1 year ago

Toelloev commented 1 year ago

Discussed in https://github.com/e2nIEE/PandaModels.jl/discussions/106

Originally posted by **Toelloev** February 15, 2023 Hi! When I'm running optimal power flow with pandapower in python using PandaModels, marginal prices are not retrieved. Running pp.runpm_ac_opf(net) on the example network from the tutorial (https://github.com/e2nIEE/pandapower/blob/develop/tutorials/pandamodels_opf.ipynb), lam_p and lam_q in net.res_bus are assigned a value of 0. Using the pypower tool, pp.runopp(net), on the same network, we get the same results, but the marginal prices are included in net.res_bus: ![image](https://user-images.githubusercontent.com/61869099/219078855-894aa591-6411-47d3-a05f-95feb9d9fe14.png) Can marginal price retrieval be included in PandaModels?