Fix pwlcosts bug

This commit is contained in:
oyurdakul
2023-05-02 14:33:30 -05:00
committed by Alinson S. Xavier
parent 6db2ca76e8
commit e8d8272510

View File

@@ -99,7 +99,7 @@ function _add_production_piecewise_linear_eqs!(
add_to_expression!( add_to_expression!(
model[:obj], model[:obj],
segprod[sc.name, gn, t, k], segprod[sc.name, gn, t, k],
g.cost_segments[k].cost[t], sc.probability * g.cost_segments[k].cost[t],
) )
# Also add an explicit upper bound on segprod to make the solver's # Also add an explicit upper bound on segprod to make the solver's