mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
Reformat code
This commit is contained in:
@@ -38,9 +38,9 @@ function _add_reserve_eqs!(model::JuMP.Model)::Nothing
|
|||||||
shortfall_penalty = instance.shortfall_penalty[t]
|
shortfall_penalty = instance.shortfall_penalty[t]
|
||||||
eq_min_reserve[t] = @constraint(
|
eq_min_reserve[t] = @constraint(
|
||||||
model,
|
model,
|
||||||
sum(model[:reserve][g.name, t] for g in instance.units) + (
|
sum(model[:reserve][g.name, t] for g in instance.units) +
|
||||||
shortfall_penalty >= 0 ? model[:reserve_shortfall][t] : 0.0
|
(shortfall_penalty >= 0 ? model[:reserve_shortfall][t] : 0.0) >=
|
||||||
) >= instance.reserves.spinning[t]
|
instance.reserves.spinning[t]
|
||||||
)
|
)
|
||||||
|
|
||||||
# Account for shortfall contribution to objective
|
# Account for shortfall contribution to objective
|
||||||
|
|||||||
Reference in New Issue
Block a user