e2nIEE / pandapower

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

problem with storage #486

Closed Misbahrani closed 5 years ago

Misbahrani commented 5 years ago

Hello! I am trying to implement storage, I selected the following specs: image

Initially the soc is zero, and both p_mw & q_mvar is zero, but after running OPF it gives: image The real_power is discharging reative_power is charging how is that possible? Is there any method to fix that??? i want to use storage for peak shaving, so that it can store energy during off-peak hours and discharge during hours of high-demand Best regards, Misbah Rani

FlorianShepherd commented 5 years ago

The storage is similar to sgens or loads if you just run a single OPF. The SOC is not taken into account in the OPF.

You have set limits for P (max_p_mw, min_p_mw) and Q (max_q_mvar, min_q_mvar) and also controllable=True. Therefore, the storage P and Q values will be set according to these limits. SOC is not considered at all, since it would depend on a step size between two time steps.

If you want to use it considering the SOC in a time series simulation, you'd have to implement that yourself.