Skip to content

Commit f9d6649

Browse files
mpopf update
1 parent 7b91db4 commit f9d6649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mpopf.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ function parse_mp_power_data(filename, N, corrective_action_ratio)
1616
busarray = [(;b..., t = t) for b in data.bus, t in 1:N ],
1717
arcarray = [(;a..., t = t) for a in data.arc, t in 1:N ],
1818
genarray = [(;g..., t = t) for g in data.gen, t in 1:N ],
19-
storarray = isempty(data.storage) ? empty_data = empty_stor : [(;s..., t = t) for s in data.storage, t in 1:N],
19+
storarray = isempty(data.storage) ? empty_stor : [(;s..., t = t) for s in data.storage, t in 1:N],
20+
#storarray = isempty(data.storage) ? empty_data = empty_stor : [(;s..., t = t) for s in data.storage, t in 1:N],
2021
Δp = corrective_action_ratio .* (data.pmax .- data.pmin)
2122
)
2223

0 commit comments

Comments
 (0)