e2nIEE / pandapower

Convenient Power System Modelling and Analysis based on PYPOWER and pandas
https://www.pandapower.org
Other
881 stars 484 forks source link

Storage modelling - PandaPower/PowerModels interface #1344

Open mttb91 opened 3 years ago

mttb91 commented 3 years ago

Hi,

when converting a PandaPower network that includes a storage object to PowerModels, a generator object with unlimited active/reactive power rating (i.e. pmin, pmax = -1e+09, +1e+09 respectively) is created in PowerModels at the same bus where the storage is specified.

I first found out this behavior while running the _storagepowermodels tutorial. By accessing the PowerModels network data dictionary through net._pm['gen'] command, it can be seen in the following screenshot that a second generator object is created at the same bus of the storage object defined in PandaPower. The generator active power profile is highly different from the storage one. image

Is this a wanted behavior? If so, may you explain it? Apologies if it is a dummy question as I am new to the PandaPower/PowerModels interface.

I am running PandaPower 2.7.0, pyjulia 0.5.6, Julia 1.5.4

Thank you very much!

MMajidi137 commented 3 years ago

@mttb91 hi, in the old versions of powermodels there was no storage model,so in pandaower converter, to_pm.py, storage is defined as bidirectional load (indeed: load+gen). however, the converter needs to be updated as storage is defined separately in powermodels.