Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DER Marginal Cost: Wrong Unit #21

Open
stroitzsch opened this issue Mar 3, 2022 · 1 comment
Open

DER Marginal Cost: Wrong Unit #21

stroitzsch opened this issue Mar 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@stroitzsch
Copy link
Contributor

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

Thanks @miladkzm for reporting!

@stroitzsch stroitzsch added the bug Something isn't working label May 13, 2022
@miladkzm
Copy link
Collaborator

miladkzm commented Oct 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants