Skip to content

Commit

Permalink
revert rate of change constraint formulation
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomha committed May 15, 2024
1 parent 0169482 commit fb8862d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devices_models/devices/common/rateofchange_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function add_linear_ramp_constraints!(
)
con_down[name, 1] = JuMP.@constraint(
get_jump_model(container),
ic_power - expr_dn[name, 1] <= ramp_limits.down * minutes_per_period
ic_power - expr_dn[name, 1] >= -1 * ramp_limits.down * minutes_per_period
)
for t in time_steps[2:end]
con_up[name, t] = JuMP.@constraint(
Expand All @@ -106,8 +106,8 @@ function add_linear_ramp_constraints!(
)
con_down[name, t] = JuMP.@constraint(
get_jump_model(container),
variable[name, t - 1] - expr_dn[name, t] <=
ramp_limits.down * minutes_per_period
variable[name, t - 1] - expr_dn[name, t] >=
-1 * ramp_limits.down * minutes_per_period
)
end
end
Expand Down

0 comments on commit fb8862d

Please sign in to comment.