diff --git a/src/model/formulations/GenMorRam2017/startstop.jl b/src/model/formulations/GenMorRam2017/startstop.jl index 2c315eb..6dbb74a 100644 --- a/src/model/formulations/GenMorRam2017/startstop.jl +++ b/src/model/formulations/GenMorRam2017/startstop.jl @@ -43,13 +43,7 @@ function _add_startup_shutdown_limit_eqs!( gi = g.name if g.initial_power > g.shutdown_limit - #eqs.shutdown_limit[gi, 0] = @constraint(mip, vars.switch_off[gi, 1] <= 0) - if formulation_status_vars.always_create_vars - fix(switch_off[gi, 1], 0.0; force = true) - @constraint(mip, vars.switch_off[gi, 1] <= 0) - else - switch_off[gi, 1] = 0.0 - end + eqs.shutdown_limit[gi, 0] = @constraint(mip, vars.switch_off[gi, 1] <= 0) end for t in 1:T