Skip to content

Commit

Permalink
Use e to indicate AffExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Dec 6, 2023
1 parent b549e09 commit 4e016e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/model/resources/fusion/fusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,15 @@ function fusion_pulse_thermal_power_generation_constraint!(
dwell_time = reactor.dwell_time

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

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion.jl#L371-L372

Added lines #L371 - L372 were not covered by tests

get_from_model(f::Function) = EP[Symbol(f(resource_component))]
vPulseStart = component_size * get_from_model(fusion_pulse_start_name)
vPulseUnderway = component_size * get_from_model(fusion_pulse_underway_name)
ePulseStart = component_size * get_from_model(fusion_pulse_start_name)
ePulseUnderway = component_size * get_from_model(fusion_pulse_underway_name)

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

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion.jl#L374-L376

Added lines #L374 - L376 were not covered by tests

# Maximum thermal power generated by core y at hour y <= Max power of committed
# core minus power lost from down time at startup
@constraint(

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

View check run for this annotation

Codecov / codecov/patch

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

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

Expand Down

0 comments on commit 4e016e6

Please sign in to comment.