Skip to content

Commit

Permalink
Fix contribution of cost_om_annual_investment_fraction in math
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering committed Aug 7, 2024
1 parent 48148b8 commit 3941491
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### User-facing changes

|fixed| Contribution of `cost_om_annual_investment_fraction` to total investment costs, to not apply to depreciated costs (#645).

|new| Piecewise constraints added to the YAML math with its own unique syntax (#107).
These constraints will be added to the optimisation problem using Special Ordered Sets of Type 2 (SOS2) variables.

Expand Down
4 changes: 2 additions & 2 deletions src/calliope/math/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -884,13 +884,13 @@ global_expressions:
equations:
- expression: >
$annualisation_weight * (
$depreciation_rate * (
($depreciation_rate + cost_om_annual_investment_fraction) * (
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, over=carriers)
)
sub_expressions:
Expand Down

0 comments on commit 3941491

Please sign in to comment.