Skip to content

Commit

Permalink
fix misnamed tech sets
Browse files Browse the repository at this point in the history
  • Loading branch information
hdunham committed Jan 15, 2025
1 parent c4b03ed commit 9124b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constraints/load_balance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ function add_production_constraints(m, p; _n="")
p.production_factor[t, ts] * p.levelization_factor[t] * m[Symbol("dvRatedProduction"*_n)][t, ts]
)
else
@constraint(m, [t in p.techs.ac_coupled_with_storage, ts in p.time_steps_with_grid],
@constraint(m, [t in p.techs.ac_couple_with_stor, ts in p.time_steps_with_grid],
sum(m[Symbol("dvProductionToGrid"*_n)][t, u, ts] for u in p.export_bins_by_tech[t])
<=
p.production_factor[t, ts] * p.levelization_factor[t] * m[Symbol("dvRatedProduction"*_n)][t, ts]
- sum(m[Symbol("dvProductionToStorage"*_n)][b, t, ts] for b in p.s.storage.types.elec)
- m[Symbol("dvCurtail"*_n)][t, ts]
)
@constraint(m, [t in p.techs.dc_coupled_with_storage, ts in p.time_steps_with_grid],
@constraint(m, [t in p.techs.dc_couple_with_stor, ts in p.time_steps_with_grid],
sum(m[Symbol("dvProductionToGrid"*_n)][t, u, ts] for u in p.export_bins_by_tech[t])
<=
p.production_factor[t, ts] * p.levelization_factor[t] * m[Symbol("dvRatedProduction"*_n)][t, ts]
Expand Down

0 comments on commit 9124b1d

Please sign in to comment.