mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
Remove references to formulation_status_vars.always_create_vars
This commit is contained in:
@@ -43,13 +43,7 @@ function _add_startup_shutdown_limit_eqs!(
|
|||||||
gi = g.name
|
gi = g.name
|
||||||
|
|
||||||
if g.initial_power > g.shutdown_limit
|
if g.initial_power > g.shutdown_limit
|
||||||
#eqs.shutdown_limit[gi, 0] = @constraint(mip, vars.switch_off[gi, 1] <= 0)
|
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
|
|
||||||
end
|
end
|
||||||
|
|
||||||
for t in 1:T
|
for t in 1:T
|
||||||
|
|||||||
Reference in New Issue
Block a user