Skip to content

Commit

Permalink
Merge pull request #868 from PyPSA/clip-links-p_max_pu
Browse files Browse the repository at this point in the history
add clipping for links
  • Loading branch information
fneum authored Jan 17, 2024
2 parents b422cf6 + e51e405 commit c1877fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def prepare_network(
for df in (
n.generators_t.p_max_pu,
n.generators_t.p_min_pu,
n.links_t.p_max_pu,
n.links_t.p_min_pu,
n.storage_units_t.inflow,
):
df.where(df > solve_opts["clip_p_max_pu"], other=0.0, inplace=True)
Expand Down

0 comments on commit c1877fa

Please sign in to comment.