Added missing reference to objective.

This commit is contained in:
Aleksandr Kazachkov
2021-07-23 19:23:13 -04:00
parent 3d252c55a3
commit 56c9e28495

View File

@@ -46,7 +46,7 @@ function _add_reserve_eqs!(model::JuMP.Model)::Nothing
# Account for shortfall contribution to objective # Account for shortfall contribution to objective
if shortfall_penalty >= 0 if shortfall_penalty >= 0
add_to_expression!( add_to_expression!(
model.obj, model[:obj],
shortfall_penalty, shortfall_penalty,
model[:reserve_shortfall][t], model[:reserve_shortfall][t],
) )