mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
Fix pwlcosts bug
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user