# Complex admittance matrix in PowerModels.jl?

**URL:** <https://discourse.julialang.org/t/complex-admittance-matrix-in-powermodels-jl/36717>\
**Category:** Optimization (Mathematical)\
**Created:** [March 30, 2020, 4:47am UTC](https://discourse.julialang.org/t/complex-admittance-matrix-in-powermodels-jl/36717 "2020-03-30T04:47:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RibeiroRaul](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@RibeiroRaul](https://discourse.julialang.org/u/RibeiroRaul)\
**Post date:** [March 30, 2020, 4:47am UTC](https://discourse.julialang.org/t/complex-admittance-matrix-in-powermodels-jl/36717/1 "2020-03-30T04:47:45Z")

</div>

Hi,

Is there a function that retrieves the complex admittance matrix from a PowerModels dict. Even though there is a type AdmittanceMatrix, it seems that it only receives susceptance matrix from calc\_susceptance\_matrix function.

Cheers!

---

<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:** [March 30, 2020, 2:39pm UTC](https://discourse.julialang.org/t/complex-admittance-matrix-in-powermodels-jl/36717/2 "2020-03-30T14:39:03Z")

</div>

Good question. For the moment only computation of the susceptance matrix is supported. However, adding the complex admittance matrix is high on the to-do list. It will most likely be implemented in the next 2-4 weeks.

You can follow this issue for updates, [Dedicated AC Power Flow Solver · Issue #590 · lanl-ansi/PowerModels.jl · GitHub](https://github.com/lanl-ansi/PowerModels.jl/issues/590)

---

<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:** [April 13, 2020, 2:51pm UTC](https://discourse.julialang.org/t/complex-admittance-matrix-in-powermodels-jl/36717/3 "2020-04-13T14:51:59Z")

</div>

As of PowerModels v0.16 the `calc_admittance_matrix` function is available for computing the system’s complex admittance matrix.

I hope that helps!
