# Line flow contrainit in DC optimal powerflow

**URL:** <https://discourse.julialang.org/t/line-flow-contrainit-in-dc-optimal-powerflow/80389>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [May 2, 2022, 9:37pm UTC](https://discourse.julialang.org/t/line-flow-contrainit-in-dc-optimal-powerflow/80389 "2022-05-02T21:37:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayodyas](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Post date:** [May 2, 2022, 9:37pm UTC](https://discourse.julialang.org/t/line-flow-contrainit-in-dc-optimal-powerflow/80389/1 "2022-05-02T21:37:12Z")

</div>

Is there any powerflow package in julia to determine the line flow limit in DC-Optimal Powerflow according to the equation

Pmax\_line \<= PTDF(PG - PD) \<= Pmax\_line

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [May 2, 2022, 10:55pm UTC](https://discourse.julialang.org/t/line-flow-contrainit-in-dc-optimal-powerflow/80389/2 "2022-05-02T22:55:10Z")

</div>

Welcome. Have you seen PowerModels.jl?

[https://lanl-ansi.github.io/PowerModels.jl/stable/](https://lanl-ansi.github.io/PowerModels.jl/stable/)

It can be used for a range of power systems problems.

If you want more details, you might need to expand your question by providing more details. It’s a little vague at the moment. What, exactly, are you trying to do?

---

<div class="post-metadata">

**Author:** ![ayodyas](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Post date:** [May 6, 2022, 10:29am UTC](https://discourse.julialang.org/t/line-flow-contrainit-in-dc-optimal-powerflow/80389/3 "2022-05-06T10:29:50Z")

</div>

Thank you for the support, Actually I solved the problem
