Skip to content

Commit

Permalink
Zero-out capres value for other zones
Browse files Browse the repository at this point in the history
Fusion should not contribute to the CRM in CRM-zones other than where it
is.
  • Loading branch information
cfe316 committed Dec 13, 2023
1 parent 457b91a commit b357677
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/model/resources/fusion/fusion_policy_adjustments.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ function fusion_capacity_reserve_margin_adjustment(EP::Model,
by_rid(rid, sym) = by_rid_df(rid, sym, dfGen)

Check warning on line 56 in src/model/resources/fusion/fusion_policy_adjustments.jl

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion_policy_adjustments.jl#L54-L56

Added lines #L54 - L56 were not covered by tests

capresfactor = by_rid(y, Symbol("CapRes_" * string(capres_zone)))
if capresfactor == 0.0
return AffExpr.(zero.(timesteps))

Check warning on line 60 in src/model/resources/fusion/fusion_policy_adjustments.jl

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion_policy_adjustments.jl#L58-L60

Added lines #L58 - L60 were not covered by tests
end
dwell_time = Float64(by_rid(y, :Dwell_Time))
component_size = by_rid(y, :Cap_Size)

Check warning on line 63 in src/model/resources/fusion/fusion_policy_adjustments.jl

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion_policy_adjustments.jl#L62-L63

Added lines #L62 - L63 were not covered by tests

Expand Down

0 comments on commit b357677

Please sign in to comment.