mesmo icon indicating copy to clipboard operation
mesmo copied to clipboard

DER Marginal Cost: Wrong Unit

Open stroitzsch opened this issue 2 years ago • 1 comments

Marginal cost values of DERs are not properly converted to match the unit of the source price time series.

Thanks @miladkzm for reporting!

stroitzsch avatar Mar 03 '22 04:03 stroitzsch

Hi Sebastian, I hope you are doing well. I downloaded the latest version of mesmo and I found out that as I had reported earlier the DER's marginal cost unit is not in 1/Wh as for price_timeseries but it is in 1/kWh.

So, I guess the line 146 in der_model.py should be replaced by the following:

self.marginal_cost = der.at["marginal_cost"] / 1e3 * der_data.scenario_data.scenario.at["base_apparent_power"] \ if pd.notnull(der.at["marginal_cost"]) else 0.0

BR, Milad

miladkzm avatar Oct 05 '22 16:10 miladkzm