# Simulating a disconnected line

**URL:** <https://discourse.julialang.org/t/simulating-a-disconnected-line/135324>\
**Category:** Modelling & Simulations\
**Tags:** powermodels\
**Created:** [January 29, 2026, 2:19pm UTC](https://discourse.julialang.org/t/simulating-a-disconnected-line/135324 "2026-01-29T14:19:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magnus\_Lilledahl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magnus_lilledahl/32/51079_2.png) [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)\
**Post date:** [January 29, 2026, 2:19pm UTC](https://discourse.julialang.org/t/simulating-a-disconnected-line/135324/1 "2026-01-29T14:19:32Z")

</div>

In pandapower it is possible to set a line parameter “in\_service” to false and the model will still run with all connected loads set to zero. I tried to set “br\_status” to 0 in powermodels but then the model returns infeasible. Is there a shortcut to simulate a line outage in powermodels?

---

<div class="post-metadata">

**Author:** ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Post date:** [February 1, 2026, 3:09pm UTC](https://discourse.julialang.org/t/simulating-a-disconnected-line/135324/2 "2026-02-01T15:09:49Z")

</div>

You are correct that setting `br_status` to 0 is the right way to remove a branch from the model. It does not automatically set all connected loads to zero. To do that try running the `simplify_network!` or `deactivate_isolated_components!` on the data after the branch is removed.

---

<div class="post-metadata">

**Author:** ![Magnus\_Lilledahl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magnus_lilledahl/32/51079_2.png) [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)\
**Post date:** [February 6, 2026, 1:48pm UTC](https://discourse.julialang.org/t/simulating-a-disconnected-line/135324/3 "2026-02-06T13:48:40Z")

</div>

Thank you for the tip (and sorry for the late reply), I will check out those functions.
