Skip to content

Commit

Permalink
Enforce no waste heat for any technology that isn't both electricity-…
Browse files Browse the repository at this point in the history
… and heat-producing
  • Loading branch information
zolanaj committed Sep 18, 2024
1 parent 93d70c7 commit e65383c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/constraints/thermal_tech_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ function add_heating_tech_constraints(m, p; _n="")
end
end
end
# Enfore

# Enforce no waste heat for any technology that isn't both electricity- and heat-producing
for t in setdiff(p.techs.heating, p.techs.elec)
for q in p.heating_loads
for ts in p.time_steps
fix(m[Symbol("dvProductionToWaste"*_n)][t,q,ts], 0.0, force=true)
end
end
end
end

function add_heating_cooling_constraints(m, p; _n="")
Expand Down

0 comments on commit e65383c

Please sign in to comment.