Skip to content

Commit

Permalink
generalize import/export constraint name for multinode
Browse files Browse the repository at this point in the history
  • Loading branch information
zolanaj committed Feb 24, 2025
1 parent d20dd3d commit 5309d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constraints/electric_utility_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function add_export_constraints(m, p; _n="")

## Imports and Exports must be no greater than the transmission limit
@constraint(m, ImportExportLimitCon[ts in p.time_steps_with_grid],
m[Symbol("ImportExportLimitCon"*_n)] = @constraint(m, [ts in p.time_steps_with_grid],
sum(m[Symbol("dvProductionToGrid"*_n)][t, u, ts] for t in p.techs.elec, u in p.export_bins_by_tech[t])
+ sum(sum( m[Symbol("dvGridPurchase"*_n)][ts, tier] for tier in 1:p.s.electric_tariff.n_energy_tiers))
<= p.s.electric_utility.transmission_limit_kw
Expand Down

0 comments on commit 5309d04

Please sign in to comment.