diff --git a/src/devices_models/devices/common/rateofchange_constraints.jl b/src/devices_models/devices/common/rateofchange_constraints.jl index 1de610701c..b5558b56b1 100644 --- a/src/devices_models/devices/common/rateofchange_constraints.jl +++ b/src/devices_models/devices/common/rateofchange_constraints.jl @@ -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( @@ -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