# QP returns NUMERICAL\_ERROR status

**URL:** <https://discourse.julialang.org/t/qp-returns-numerical-error-status/48630>\
**Category:** Optimization (Mathematical)\
**Created:** [October 19, 2020, 2:23pm UTC](https://discourse.julialang.org/t/qp-returns-numerical-error-status/48630 "2020-10-19T14:23:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkanver](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@arkanver](https://discourse.julialang.org/u/arkanver)\
**Post date:** [October 19, 2020, 2:23pm UTC](https://discourse.julialang.org/t/qp-returns-numerical-error-status/48630/1 "2020-10-19T14:23:42Z")

</div>

Hello all,

I have been trying to solve a quadratic problem with linear and box constraints. My objective function is convex. In most cases the problem gets solved fine (OPTIMAL status), but sometimes on larger examples I get the problematic status NUMERICAL\_ERROR. Sometimes, there is still a feasible solution in the model and I am able to carry on just fine. In some other instances, there is no solution in the model and my algorithm stops (since it needs a feasible solution to carry on).

Since this happens in some cases and not others, I am not able to provide a minimal example.

Do you know anything about this status that might be of help here ? I use CPLEX 12.10 with JuMP v0.21.5 and CPLEX.jl’s current master branch.

Thank you for reading.

---

<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 19, 2020, 4:38pm UTC](https://discourse.julialang.org/t/qp-returns-numerical-error-status/48630/2 "2020-10-19T16:38:53Z")

</div>

I can recommend trying other solvers like Gurobi, Xpress, and Ipopt.

---

<div class="post-metadata">

**Author:** ![arkanver](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@arkanver](https://discourse.julialang.org/u/arkanver)\
**Post date:** [October 19, 2020, 4:55pm UTC](https://discourse.julialang.org/t/qp-returns-numerical-error-status/48630/3 "2020-10-19T16:55:02Z")

</div>

Ipopt worked for me, thank you ! Still a bit confused as to why that happened, but for now it works for me.

---

<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:** [October 19, 2020, 5:38pm UTC](https://discourse.julialang.org/t/qp-returns-numerical-error-status/48630/4 "2020-10-19T17:38:37Z")

</div>

I suggest you read the following: [https://www.gurobi.com/documentation/9.0/refman/num\_grb\_guidelines\_for\_num.html](https://www.gurobi.com/documentation/9.0/refman/num_grb_guidelines_for_num.html)
