From 209c3a72e9992dab5faad09e15a832c202a369e3 Mon Sep 17 00:00:00 2001 From: Alinson S Xavier Date: Fri, 23 Jul 2021 17:11:01 -0500 Subject: [PATCH] Reformat code --- src/model/formulations/base/system.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model/formulations/base/system.jl b/src/model/formulations/base/system.jl index 949dc00..fb04eee 100644 --- a/src/model/formulations/base/system.jl +++ b/src/model/formulations/base/system.jl @@ -38,9 +38,9 @@ function _add_reserve_eqs!(model::JuMP.Model)::Nothing shortfall_penalty = instance.shortfall_penalty[t] eq_min_reserve[t] = @constraint( model, - sum(model[:reserve][g.name, t] for g in instance.units) + ( - shortfall_penalty >= 0 ? model[:reserve_shortfall][t] : 0.0 - ) >= instance.reserves.spinning[t] + sum(model[:reserve][g.name, t] for g in instance.units) + + (shortfall_penalty >= 0 ? model[:reserve_shortfall][t] : 0.0) >= + instance.reserves.spinning[t] ) # Account for shortfall contribution to objective