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

Force link between flow cap and purchased units in base math #566

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/calliope/math/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -377,21 +377,21 @@ constraints:
description: >-
Fix the flow capacity of any technology using integer units to define its capacity.
foreach: [nodes, techs, carriers]
where: "operating_units"
where: "operating_units AND flow_cap_per_unit"
equations:
- where: flow_cap_per_unit
expression: flow_cap == purchased_units * flow_cap_per_unit
- where: NOT flow_cap_per_unit
expression: flow_cap <= purchased_units * bigM
- expression: flow_cap == purchased_units * flow_cap_per_unit

flow_capacity_max_purchase_milp:
description: >-
Set the upper bound on a technology's flow capacity,
for any technology with integer capacity purchasing.
foreach: [nodes, techs, carriers]
where: "purchased_units AND flow_cap_max"
where: "purchased_units"
equations:
- expression: flow_cap <= flow_cap_max * purchased_units
- where: flow_cap_max
expression: flow_cap <= flow_cap_max * purchased_units
- where: NOT flow_cap_max
expression: flow_cap <= bigM * purchased_units

flow_capacity_min_purchase_milp:
description: >-
Expand Down
Loading