Rename 'production' to 'thermal production'

This commit is contained in:
2023-04-04 15:59:41 -05:00
parent 19534a128f
commit b1c963f217
5 changed files with 15 additions and 14 deletions

View File

@@ -10,8 +10,8 @@ solution. Useful for computing LMPs.
"""
function fix!(model::JuMP.Model, solution::AbstractDict)::Nothing
instance, T = model[:instance], model[:instance].time
"Production (MW)" keys(solution) ? solution = Dict("s1" => solution) :
nothing
"Thermal production (MW)" keys(solution) ?
solution = Dict("s1" => solution) : nothing
is_on = model[:is_on]
prod_above = model[:prod_above]
reserve = model[:reserve]
@@ -20,7 +20,7 @@ function fix!(model::JuMP.Model, solution::AbstractDict)::Nothing
for t in 1:T
is_on_value = round(solution[sc.name]["Is on"][g.name][t])
prod_value = round(
solution[sc.name]["Production (MW)"][g.name][t],
solution[sc.name]["Thermal production (MW)"][g.name][t],
digits = 5,
)
JuMP.fix(is_on[g.name, t], is_on_value, force = true)