|
|
|
@ -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
|
|
|
|
|