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

Add efficiency of hydro powerplants in equity constraints #1245

Open
davide-f opened this issue Dec 19, 2024 · 0 comments
Open

Add efficiency of hydro powerplants in equity constraints #1245

davide-f opened this issue Dec 19, 2024 · 0 comments

Comments

@davide-f
Copy link
Member

Describe the feature you'd like to see

The current function add_EQ_constraints in solve_network calculates the contribution of energy by hydro powerplants as:
inflow - spillage.
However, if discharging efficiency applies it may lead to overestimation of the production in the node.

Possible reformulation may adopt:

  • inflow * efficiency_dispatch - spillage, or
  • direclty use the p_dispatch variable

See

inflow = (
n.snapshot_weightings.stores
@ n.storage_units_t.inflow.groupby(sgrouper, axis=1).sum()
)
inflow = inflow.reindex(load.index).fillna(0.0)
rhs = scaling * (level * load - inflow)
lhs_gen = (
linexpr(
(n.snapshot_weightings.generators * scaling, get_var(n, "Generator", "p").T)
)
.T.groupby(ggrouper, axis=1)
.apply(join_exprs)
)
lhs_spill = (
linexpr(
(
-n.snapshot_weightings.stores * scaling,
get_var(n, "StorageUnit", "spill").T,
)
)
.T.groupby(sgrouper, axis=1)
.apply(join_exprs)
)
lhs_spill = lhs_spill.reindex(lhs_gen.index).fillna("")
lhs = lhs_gen + lhs_spill

Adding an issue also in pypsa-eur as it seems the same applies there as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant