Skip to content

Commit

Permalink
Fix pulse-underway constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Dec 4, 2023
1 parent 91c10d7 commit caa8c40
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/model/resources/fusion/fusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,11 @@ function fusion_pulse_thermal_power_generation_constraint!(

# Maximum thermal power generated by core y at hour y <= Max power of committed
# core minus power lost from down time at startup
if dwell_time > 0
@constraint(
EP,
[t in 1:T],
power_like[y, t] <= vPulseUnderway[t] - dwell_time * vPulseStart[t]
)
end
@constraint(

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

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion.jl#L340

Added line #L340 was not covered by tests
EP,
[t in 1:T],
power_like[y, t] <= vPulseUnderway[t] - dwell_time * vPulseStart[t]
)
end

function fusion_parasitic_power!(

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

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion.jl#L347

Added line #L347 was not covered by tests
Expand Down

0 comments on commit caa8c40

Please sign in to comment.