Skip to content

Commit a71bb30

Browse files
update user extension
1 parent 51a116b commit a71bb30

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/mpopf.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ function build_mpopf(data, Nbus, N, form, user_callback; backend = nothing, T =
237237
vars2, cons2 = user_callback(core, vars, cons)
238238
model =ExaModel(core; kwargs...)
239239

240-
vars = vars(;vars..., vars2)
241-
cons = cons(;cons..., cons2)
240+
vars = (;vars..., vars2)
241+
cons = (;cons..., cons2)
242242
return model, vars, cons
243243
end
244244

@@ -257,8 +257,8 @@ function build_mpopf(data, Nbus, N, discharge_func::Function, form, user_callbac
257257
vars2, cons2 = user_callback(core, vars, cons)
258258
model =ExaModel(core; kwargs...)
259259

260-
vars = vars(;vars..., vars2)
261-
cons = cons(;cons..., cons2)
260+
vars = (;vars..., vars2)
261+
cons = (;cons..., cons2)
262262
return model, vars, cons
263263
end
264264

src/opf.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ function build_rect_opf(data, user_callback; backend = nothing, T=Float64, kwarg
188188
vars2, cons2 = user_callback(core, vars, cons)
189189
model =ExaModel(core; kwargs...)
190190

191-
vars = vars(;vars..., vars2)
192-
cons = cons(;cons..., cons2)
191+
vars = (;vars..., vars2)
192+
cons = (;cons..., cons2)
193193

194194
return model, vars, cons
195195
end

0 commit comments

Comments
 (0)