Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Nov 3, 2023
1 parent 7a2ec8f commit 7727a07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/constraints/constraint_ramp_down.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ to the `shut_down_limit` and `ramp_down_limit` parameter values.
function add_constraint_ramp_down!(m::Model)
@fetch units_on, units_shut_down, unit_flow = m.ext[:spineopt].variables
t0 = _analysis_time(m)
m.ext[:spineopt].constraints[:ramp_up] = Dict(
m.ext[:spineopt].constraints[:ramp_down] = Dict(
(unit=u, node=ng, direction=d, stochastic_path=s, t_before=t_before, t_after=t_after) => @constraint(
m,
+ expr_sum(
Expand Down Expand Up @@ -63,15 +63,15 @@ function add_constraint_ramp_down!(m::Model)
- _ramp_down_limit(u, ng, d, s, t0, t_after)
)
* units_shut_down[u, s, t]
- minimum_operating_point(u, ng, d, s, t0, t_after)
- _minimum_operating_point(u, ng, d, s, t0, t_after)
* units_on[u, s, t]
)
* min(duration(t), duration(t_after))
for (u, s, t) in units_on_indices(m; unit=u, stochastic_scenario=s, t=t_overlaps_t(m; t=t_after));
init=0
)
+ expr_sum(
+ (minimum_operating_point(u, ng, d, s, t0, t_after) + _ramp_down_limit(u, ng, d, s, t0, t_after))
+ (_minimum_operating_point(u, ng, d, s, t0, t_after) + _ramp_down_limit(u, ng, d, s, t0, t_after))
* units_on[u, s, t] * min(duration(t), duration(t_before))
for (u, s, t) in units_on_indices(m; unit=u, stochastic_scenario=s, t=t_overlaps_t(m; t=t_before));
init=0
Expand Down
2 changes: 1 addition & 1 deletion src/constraints/constraint_ramp_up.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function add_constraint_ramp_up!(m::Model)
- _ramp_up_limit(u, ng, d, s, t0, t_after)
)
* units_started_up[u, s, t]
+ (minimum_operating_point(u, ng, d, s, t0, t_after) + _ramp_up_limit(u, ng, d, s, t0, t_after))
+ (_minimum_operating_point(u, ng, d, s, t0, t_after) + _ramp_up_limit(u, ng, d, s, t0, t_after))
* units_on[u, s, t]
)
* min(duration(t), duration(t_after))
Expand Down

0 comments on commit 7727a07

Please sign in to comment.