Skip to content

Commit

Permalink
Discount cUnmetPolicyPenalty in write_multi_stage_cost.jl (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Apr 16, 2024
1 parent 90e1936 commit 3ca97dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add check when capital recovery period is zero and investment costs are
non-zero in multi-stage GenX (#666)
- Fix write_status with UCommit = WriteShadowPrices = 1 (#645)
- Fix write_multi_stage_cost.jl: add discount with OPEX multipliers to
cUnmetPolicyPenalty (#679)

## [0.3.7] - 2024-04-02

Expand Down
2 changes: 1 addition & 1 deletion src/multi_stage/write_multi_stage_costs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function write_multi_stage_costs(outpath::String, settings_d::Dict, inputs_dict:
end

# For OPEX costs, apply additional discounting
for cost in ["cVar", "cNSE", "cStart", "cUnmetRsv"]
for cost in ["cVar", "cNSE", "cStart", "cUnmetRsv", "cUnmetPolicyPenalty"]
if cost in df_costs[!, :Costs]
df_costs[df_costs[!, :Costs].==cost, 2:end] = transpose(OPEXMULTS) .* df_costs[df_costs[!, :Costs].==cost, 2:end]
end
Expand Down

0 comments on commit 3ca97dc

Please sign in to comment.