Added reserve_shortfall variable

This commit is contained in:
Aleksandr Kazachkov
2021-07-23 18:17:53 -04:00
parent 209c3a72e9
commit 97b8611fcc

View File

@@ -51,6 +51,9 @@ function _add_reserve_vars!(model::JuMP.Model, g::Unit)::Nothing
else else
reserve[g.name, t] = 0.0 reserve[g.name, t] = 0.0
end end
reserve_shortfall[t] =
(model[:instance].shortfall_penalty[t] >= 0) ?
@variable(model, lower_bound = 0) : 0.0
end end
return return
end end