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

Consider vintage availability in cost calculations #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
20 changes: 16 additions & 4 deletions src/calliope_pathways/math/pathways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,31 +317,43 @@ global_expressions:
foreach: [nodes, techs, carriers, costs, investsteps]
equations:
- where: flow_cap_new
expression: sum($cost_sum * flow_cap_new, over=vintagesteps)
expression: sum($cost_sum * flow_cap_new * available_vintages, over=vintagesteps)
irm-codebase marked this conversation as resolved.
Show resolved Hide resolved

cost_investment_storage_cap:
foreach: [nodes, techs, costs, investsteps]
equations:
- where: storage_cap_new
expression: sum(cost_storage_cap * storage_cap_new, over=vintagesteps)
expression: sum(cost_storage_cap * storage_cap_new * available_vintages, over=vintagesteps)

cost_investment_source_cap:
foreach: [nodes, techs, costs, investsteps]
equations:
- where: source_cap_new
expression: sum(cost_source_cap * source_cap_new, over=vintagesteps)
expression: sum(cost_source_cap * source_cap_new * available_vintages, over=vintagesteps)

cost_investment_area_use:
foreach: [nodes, techs, costs, investsteps]
equations:
- where: area_use_new
expression: sum(cost_area_use * area_use_new, over=vintagesteps)
expression: sum(cost_area_use * area_use_new * available_vintages, over=vintagesteps)

cost_investment_purchase:
foreach: [nodes, techs, costs, investsteps]

cost_investment:
foreach: [nodes, techs, costs, investsteps]
equations:
- expression: >
$annualisation_weight * (
$depreciation_rate * (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, could you explain where annualisation_weight and depreciation_rate are set?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the expression, it seems we are close to TEMOA's approach, which I think is good...

But honestly it's a tad hard to be sure on my part...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sum(default_if_empty(cost_investment_flow_cap, 0), over=carriers) +
default_if_empty(cost_investment_storage_cap, 0) +
default_if_empty(cost_investment_source_cap, 0) +
default_if_empty(cost_investment_area_use, 0) +
default_if_empty(cost_investment_purchase, 0)
) * (1 + cost_om_annual_investment_fraction)
+ sum(cost_om_annual * flow_cap_new * available_vintages, over=[carriers, vintagesteps])
)

cost:
foreach: [nodes, techs, costs, investsteps]
Expand Down
Loading