-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into purge-masking-clustering
- Loading branch information
Showing
37 changed files
with
956 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
- CITATION | ||
- AUTHORS | ||
- doc/** | ||
- .readthedocs.yml | ||
|
||
defaults: | ||
run: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
- CITATION | ||
- AUTHORS | ||
- doc/** | ||
- .readthedocs.yml | ||
|
||
defaults: | ||
run: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
version: 2 # required | ||
formats: [pdf] | ||
conda: | ||
environment: requirements/docs.yml | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Force upper limit on carrier imports within nodes or across all nodes as a share of all carrier flows at a node/across nodes. | ||
# Imports of transmission technologies are defined by `flow_out` (outflow from a transmission technology that originated in a remote node). | ||
# We assume that transmission technologies `test_transmission_elec` and `test_transmission_heat` have been defined. | ||
|
||
# New top-level parameters: | ||
# net_import_share | ||
|
||
# helper functions used: | ||
# defined (where) | ||
# sum (expression) | ||
# get_transmission_techs (expression) | ||
|
||
constraints: | ||
net_import_share_max: | ||
description: Limit upper bound on electricity imports within nodes as a share of all electricity flows at each node. | ||
foreach: [nodes, timesteps] | ||
where: "defined(techs=test_transmission_elec, within=nodes, how=any)" | ||
equations: | ||
- expression: net_import_share * sum(flow_out[techs=$transmission_techs, carriers=electricity], over=techs) <= $total_energy_balance | ||
sub_expressions: | ||
total_energy_balance: | ||
- expression: sum(flow_out[carriers=electricity], over=techs) - sum(flow_in[carriers=electricity], over=techs) | ||
slices: | ||
transmission_techs: | ||
- expression: get_transmission_techs(test_transmission_elec) | ||
|
||
net_annual_import_share_max: | ||
description: Limit upper bound on annual electricity imports within nodes as a share of all electricity flows at each node. | ||
foreach: [nodes] | ||
where: "defined(techs=test_transmission_elec, within=nodes, how=any)" | ||
equations: | ||
- expression: net_import_share * sum(flow_out[techs=$transmission_techs, carriers=electricity], over=[techs, timesteps]) <= $total_energy_balance | ||
sub_expressions: | ||
total_energy_balance: | ||
- expression: sum(flow_out[carriers=electricity], over=[techs, timesteps]) - sum(flow_in[carriers=electricity], over=[techs, timesteps]) | ||
slices: | ||
transmission_techs: | ||
- expression: get_transmission_techs(test_transmission_elec) | ||
|
||
net_annual_import_share_max_node_group: | ||
description: Limit upper bound on annual heat imports across a subset of nodes in the model as a share of combined heat flows in those nodes. | ||
equations: | ||
- expression: net_import_share * sum(flow_out[techs=$transmission_techs, nodes=$node_group, carriers=$carrier], over=[nodes, techs, timesteps]) <= $total_energy_balance | ||
sub_expressions: | ||
total_energy_balance: | ||
- expression: sum(flow_out[nodes=$node_group, carriers=$carrier], over=[nodes, techs, timesteps]) - sum(flow_in[nodes=$node_group, carriers=$carrier], over=[nodes, techs, timesteps]) | ||
slices: | ||
transmission_techs: | ||
- expression: get_transmission_techs(test_transmission_heat) | ||
node_group: # The subset of nodes in which to limit heat imports | ||
- expression: "[a, c]" | ||
carrier: # The carrier for which to limit imports | ||
- expression: heat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.