# How to add volt/var curve to PowerModels.jl

**URL:** <https://discourse.julialang.org/t/how-to-add-volt-var-curve-to-powermodels-jl/127611>\
**Category:** Optimization (Mathematical)\
**Created:** [April 1, 2025, 11:22pm UTC](https://discourse.julialang.org/t/how-to-add-volt-var-curve-to-powermodels-jl/127611 "2025-04-01T23:22:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glon](https://avatars.discourse-cdn.com/v4/letter/g/ccd318/32.png) [@Glon](https://discourse.julialang.org/u/Glon)\
**Post date:** [April 1, 2025, 11:22pm UTC](https://discourse.julialang.org/t/how-to-add-volt-var-curve-to-powermodels-jl/127611/1 "2025-04-01T23:22:21Z")

</div>

Hello,

How can I add the volt/var curve as a non-linear expression to powermodels.jl?

---

<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:** [April 2, 2025, 7:40pm UTC](https://discourse.julialang.org/t/how-to-add-volt-var-curve-to-powermodels-jl/127611/2 "2025-04-02T19:40:06Z")

</div>

Can you be a little more specific in what you want to do?

PowerModels.jl has a number of built-in formulations. If you want a customized formulation, your best approach is probably to use the data parser and then write out the model yourself.

See, for example, [PowerModelsAnnex.jl/src/model/ac-opf.jl at master · lanl-ansi/PowerModelsAnnex.jl · GitHub](https://github.com/lanl-ansi/PowerModelsAnnex.jl/blob/master/src/model/ac-opf.jl)
