We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3473bc2 commit 4f9daeaCopy full SHA for 4f9daea
src/prob/pf.jl
@@ -312,7 +312,7 @@ function compute_ac_pf(pf_data::PowerFlowData; kwargs...)
312
if bus["bus_type"] != 4
313
bus_idx = am.bus_to_idx[bus["index"]]
314
315
- bus_assignment[i] = Dict(
+ bus_assignment[i] = Dict{String,Float64}(
316
"vm" => pf_data.vm_idx[bus_idx],
317
"va" => pf_data.va_idx[bus_idx]
318
)
@@ -322,7 +322,7 @@ function compute_ac_pf(pf_data::PowerFlowData; kwargs...)
322
gen_assignment= Dict{String,Any}()
323
for (i,gen) in data["gen"]
324
if gen["gen_status"] != 0
325
- gen_assignment[i] = Dict(
+ gen_assignment[i] = Dict{String,Float64}(
326
"pg" => gen["pg"],
327
"qg" => gen["qg"]
328
0 commit comments