Open kersulis opened 6 years ago
Sure enough, the graph is not connected:
using LightGraphs, PowerModels
PMs = PowerModels
path = # <path to case3375>
pm = build_generic_model(path, ACPPowerModel, PMs.post_opf)
A, lookup_index = PMs.adjacency_matrix(pm)
G = Graph(A)
is_connected(G) # prints false
Looks like bus 10287 is all by itself:
julia> connected_components(G)[2]
1-element Array{Int64,1}:
1898
julia> lookup_bus_index = map(reverse, lookup_index)
julia> lookup_bus_index[1898]
10287
Stacktrace when attempting to run
build_generic_model(<case3375_path>, SDPDecompPowerModel, PowerModels.post_opf)
: