Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ the charging capacity of the storage component in VRE_STOR (#770).
with Julia v1.11 (#785).
- Fixed cost calculation in `write_costs.jl` when no resources are present in
a zone. (#796)
- Added `eTotalCMaxCapSlack` to calculation of `cUnmetPolicyPenalty` in
`write_costs.jl` (#806).

## [0.4.1] - 2024-08-20

Expand Down
4 changes: 4 additions & 0 deletions src/write_outputs/write_costs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ function write_costs(path::AbstractString, inputs::Dict, setup::Dict, EP::Model)
dfCost[9, 2] += value(EP[:eTotalCMinCapSlack])
end

if haskey(inputs, "MaxCapPriceCap")
dfCost[9, 2] += value(EP[:eTotalCMaxCapSlack])
end

if haskey(inputs, "H2DemandPriceCap")
dfCost[9, 2] += value(EP[:eTotalCH2DemandSlack])
end
Expand Down
Loading