e2nIEE / pandapower

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

Each timeseries cost #2134

Open Aliadavid opened 1 year ago

Aliadavid commented 1 year ago

Feature Checklist

Issue

Is it possible to store the Dispatch Cost for each time step using the output_writer?

Label

pawellytaev commented 2 months ago

Hi @Aliadavid, When using OPF in timeseries, you can use the output writer during run_timeseries to track the res_cost. Here are relevant tutorials that might help: https://github.com/e2nIEE/pandapower/blob/develop/tutorials/opf_basic.ipynb https://github.com/e2nIEE/pandapower/blob/develop/tutorials/timeseries_opf.ipynb

PB-vines commented 2 days ago

@Aliadavid I have the same question. @pawellytaev those tutorials do not show logging the cost at each indepent timestep. If I have 24 time steps, I want 24 cost data points.

vogt31337 commented 1 day ago

@PB-vines I am not sure, but this should be in the internal data structure of the output writer which you can also access afterwards. Quick hack would be to just run a for-loop.