# Do degeneracies and numerical instabilities more likely during the execution of solvers in case of formulations with greater number of constraints and decision variables?

**URL:** https://discourse.julialang.org/t/do-degeneracies-and-numerical-instabilities-more-likely-during-the-execution-of-solvers-in-case-of-formulations-with-greater-number-of-constraints-and-decision-variables/129108
**Category:** Optimization (Mathematical)
**Tags:** sddp
**Created:** [May 17, 2025, 9:51pm UTC](https://discourse.julialang.org/t/do-degeneracies-and-numerical-instabilities-more-likely-during-the-execution-of-solvers-in-case-of-formulations-with-greater-number-of-constraints-and-decision-variables/129108 "2025-05-17T21:51:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Engr\_Moiz\_Ahmad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/engr_moiz_ahmad/32/214621_2.png) [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)
#### Post date: [May 17, 2025, 9:51pm UTC](https://discourse.julialang.org/t/do-degeneracies-and-numerical-instabilities-more-likely-during-the-execution-of-solvers-in-case-of-formulations-with-greater-number-of-constraints-and-decision-variables/129108/1 "2025-05-17T21:51:26Z")

</div>

I am dealing with a multi-stage mixed-integer stochastic global supply chain optimization problem and want to solve it using the SDDiP algorithm in the [SDDP.jl](https://juliaregistries.github.io/General/packages/redirect_to_repo/SDDP) package in Julia.

In this regard, I am conducting preliminary experiments and wondering that are degeneracies and numerical instabilities more likely during the execution of solvers while solving formulations with a greater number of constraints and decision variables.

If yes, is Gurobi likely to be better at solving these large-scale problems than CPLEX, since Gurobi is considered to have greater numerical stability? References to the peer-reviewed material in the answers will be appreciated.

---

<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: [May 17, 2025, 10:51pm UTC](https://discourse.julialang.org/t/do-degeneracies-and-numerical-instabilities-more-likely-during-the-execution-of-solvers-in-case-of-formulations-with-greater-number-of-constraints-and-decision-variables/129108/2 "2025-05-17T22:51:31Z")

</div>

This question doesn’t really have an answer. It really depends on the model.

You should read

- [Tolerances and numerical issues · JuMP](https://jump.dev/JuMP.jl/stable/tutorials/getting_started/tolerances/)
- [Words of warning · SDDP.jl](https://sddp.dev/stable/tutorial/warnings/#Numerical-stability)

If you have more questions, it would be helpful if you could provide a reproducible example of your model.

---

<div class="post-metadata">

### Author: ![Engr\_Moiz\_Ahmad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/engr_moiz_ahmad/32/214621_2.png) [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)
#### Post date: [May 18, 2025, 2:23am UTC](https://discourse.julialang.org/t/do-degeneracies-and-numerical-instabilities-more-likely-during-the-execution-of-solvers-in-case-of-formulations-with-greater-number-of-constraints-and-decision-variables/129108/3 "2025-05-18T02:23:58Z")

</div>

Got it. I will read them. Thanks.
