# Using SciPy Optimization

**URL:** <https://discourse.julialang.org/t/using-scipy-optimization/111317>\
**Category:** Optimization (Mathematical)\
**Tags:** question, python\
**Created:** [March 7, 2024, 6:56pm UTC](https://discourse.julialang.org/t/using-scipy-optimization/111317 "2024-03-07T18:56:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtapia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rtapia/32/207390_2.png) [@rtapia](https://discourse.julialang.org/u/rtapia)\
**Post date:** [March 7, 2024, 6:56pm UTC](https://discourse.julialang.org/t/using-scipy-optimization/111317/1 "2024-03-07T18:56:22Z")

</div>

Hello,

Regarding the capabilities of SciPy.jl, it seems it cannot incorporate the constraints SciPy.NonlinearConstraints?

Thanks

---

<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:** [March 7, 2024, 6:57pm UTC](https://discourse.julialang.org/t/using-scipy-optimization/111317/2 "2024-03-07T18:57:23Z")

</div>

Julia has a good range of optimization libraries. You should not need to call `spicy.optimize`.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 7, 2024, 7:58pm UTC](https://discourse.julialang.org/t/using-scipy-optimization/111317/3 "2024-03-07T19:58:21Z")

</div>

SciPy.jl uses PyCall.jl, which allows you to call essentially any Python API from Julia. So, you should be able to access any `scipy.optimize` API, but you may have to dig through the wrapper functions of SciPy.jl to figure out how to access it.

Alternatively, you should be able to import and call `scipy.optimize` directly via PyCall.jl (or via PythonCall.jl), without using SciPy.jl. Then you can just directly translate the Python API calls into Julia.
