I'm modelling my own grid in matpower to calculate the optimal power flow (opf). The thing is my grid has WT, PV & storage system in them along with the conventional generators.Does anyone know how to include the Energy Storage System in the code? And how can I include the charging and the discharging?
Thank you,