# Optimization.jl constraints violated...why?

**URL:** https://discourse.julialang.org/t/optimization-jl-constraints-violated-why/88269
**Category:** Optimization (Mathematical)
**Created:** [October 5, 2022, 3:59am UTC](https://discourse.julialang.org/t/optimization-jl-constraints-violated-why/88269 "2022-10-05T03:59:50Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [October 5, 2022, 9:56pm UTC](https://discourse.julialang.org/t/optimization-jl-constraints-violated-why/88269/7 "2022-10-05T21:56:19Z")

</div>

In my experience Optim can be suitable for small problems but I have had difficulty getting it to work on large constrained optimization problems. There is some discussion of my experience here, [AC Optimal Power Flow in Various Nonlinear Optimization Frameworks](https://discourse.julialang.org/t/ac-optimal-power-flow-in-various-nonlinear-optimization-frameworks/78486)

There are a few pure-Julia MOI compatible solvers out there but there is a good reason that JuMP primarily calls a wide variety of non-Julia solvers. These solvers distill decades of R&D in optimization algorithms, and it is not easy to get similar performance rolling your own.

---

_[View the full topic](https://discourse.julialang.org/t/optimization-jl-constraints-violated-why/88269)._
