Skip to content

Commit ca2cbc1

Browse files
committed
Updated the power flow modeling approach
1 parent fb8358b commit ca2cbc1

File tree

3 files changed

+235
-126
lines changed

3 files changed

+235
-126
lines changed

src/constraints/electric_utility_constraints.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ function add_export_constraints(m, p; _n="")
33

44
##Constraint (8e): Production export and curtailment no greater than production
55
if string(p.s.site.node) != p.s.settings.facilitymeter_node
6-
print("\n Updated***24 timesteps, Adding constraint 8e to node $(p.s.site.node)")
6+
print("\n Adding constraint 8e to node $(p.s.site.node)")
77
@constraint(m, [t in p.techs.elec, ts in p.time_steps_with_grid],
88
p.production_factor[t,ts] * p.levelization_factor[t] * m[Symbol("dvRatedProduction"*_n)][t,ts]
99
>= sum(m[Symbol("dvProductionToGrid"*_n)][t, u, ts] for u in p.export_bins_by_tech[t]) +
1010
m[Symbol("dvCurtail"*_n)][t, ts]
1111
)
1212
else
1313
print("\n Not adding constraint 8e to the facility meter node, node $(p.s.site.node)")
14-
TempVector = collect(25:8760) # implemented only for initial testing; TODO: remove this after testing
14+
#TempVector = collect(25:8760) # implemented only for initial testing; TODO: remove this after testing
1515
@constraint(m, [t in p.techs.elec, ts in p.time_steps_with_grid], m[Symbol("dvRatedProduction"*_n)][t,ts] == 0)
16-
@constraint(m, [t in p.techs.elec, ts in TempVector], sum(m[Symbol("dvProductionToGrid"*_n)][t, u, ts] for u in p.export_bins_by_tech[t]) == 0)
16+
#@constraint(m, [t in p.techs.elec, ts in TempVector], sum(m[Symbol("dvProductionToGrid"*_n)][t, u, ts] for u in p.export_bins_by_tech[t]) == 0)
1717
@constraint(m, [t in p.techs.elec, ts in p.time_steps_with_grid], m[Symbol("dvCurtail"*_n)][t, ts] == 0)
1818
end
1919

0 commit comments

Comments
 (0)