Skip to content

Commit

Permalink
More accurate message when deactivating isolated components (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp authored Mar 4, 2025
1 parent 3473bc2 commit db58c4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PowerModels.jl Change Log
=========================

### Staged
- nothing
- Updated the logging message when components are deactivated (#943)

### v0.21.3
- Fix no-buses bug in `calc_connected_components` (#933)
Expand Down
2 changes: 1 addition & 1 deletion src/core/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ function _deactivate_isolated_components!(data::Dict{String,<:Any})
active_strg_count = sum(cc_active_strg)

if (active_load_count == 0 && active_shunt_count == 0 && active_strg_count == 0) || active_gen_count == 0
Memento.info(_LOGGER, "deactivating connected component $(cc) due to isolation without generation, load or storage")
Memento.info(_LOGGER, "deactivating connected component $(cc) due to isolation without (a) generation or (b) load, storage, or shunts")
for i in cc
buses[i]["bus_type"] = 4
end
Expand Down

0 comments on commit db58c4f

Please sign in to comment.