Skip to content

Commit f044684

Browse files
committed
back to 2 pct
1 parent 87c357f commit f044684

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/constraints/storage_constraints.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ function add_elec_storage_dispatch_constraints(m, p, b; _n="")
143143
if hasproperty(p.s.storage.attr[b], :fixed_soc_series_fraction) && !isnothing(p.s.storage.attr[b].fixed_soc_series_fraction)
144144
@constraint(m, [ts in p.time_steps],
145145
# Allow for a 1 pct point buffer on user-provided fixed_soc_series_fraction
146-
m[Symbol("dvStoredEnergy"*_n)][b, ts] <= (0.01 + p.s.storage.attr[b].fixed_soc_series_fraction[ts]) * m[Symbol("dvStorageEnergy"*_n)][b]
146+
m[Symbol("dvStoredEnergy"*_n)][b, ts] <= (0.02 + p.s.storage.attr[b].fixed_soc_series_fraction[ts]) * m[Symbol("dvStorageEnergy"*_n)][b]
147147
)
148148
@constraint(m, [ts in p.time_steps],
149-
m[Symbol("dvStoredEnergy"*_n)][b, ts] >= (-0.01 + p.s.storage.attr[b].fixed_soc_series_fraction[ts]) * m[Symbol("dvStorageEnergy"*_n)][b]
149+
m[Symbol("dvStoredEnergy"*_n)][b, ts] >= (-0.02 + p.s.storage.attr[b].fixed_soc_series_fraction[ts]) * m[Symbol("dvStorageEnergy"*_n)][b]
150150
)
151151
end
152152
end

src/core/energy_storage/electric_storage.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ end
188188
degradation::Dict = Dict()
189189
minimum_avg_soc_fraction::Float64 = 0.0
190190
optimize_soc_init_fraction::Bool = false # If true, soc_init_fraction will not apply. Model will optimize initial SOC and constrain initial SOC = final SOC.
191-
fixed_soc_series_fraction::Union{Nothing, Array{<:Real,1}} = nothing # If provided, SOC (as fraction of total energy capacity) will not be optimized and will instead be fixed to the values provided here +- 0.01 (this buffer is to avoid infeasible solutions)
191+
fixed_soc_series_fraction::Union{Nothing, Array{<:Real,1}} = nothing # If provided, SOC (as fraction of total energy capacity) will not be optimized and will instead be fixed to the values provided here +- 0.02 (this buffer is to avoid infeasible solutions)
192192
min_duration_hours::Real = 0.0 # Minimum amount of time storage can discharge at its rated power capacity
193193
max_duration_hours::Real = 100000.0 # Maximum amount of time storage can discharge at its rated power capacity (ratio of ElectricStorage size_kwh to size_kw)
194194

0 commit comments

Comments
 (0)