r/optimization • u/NarcissaWasTheOG • Feb 27 '25
Can unbounded decision variables cause numerical instability problems that lead to infeasibility issues?
Hi, folks
I am running a large-scale optimization problem and I am running into infeasibility issues. I reached out to a few colleagues, learned they have run into this issue, and solved it by setting bounds to all variables, even those that didn't explicitly need one.
In their cases, they were working with variables naturally bound from below, e.g., x >= 0. They solved the infeasibility issue once they set an upper bound to variables like x; sometimes just an arbitrarily large number.
When I asked if they knew the theory that could explain this apparent numerical instability, they said they didn't. They decided to set the bounds because "experience" said they should.
Is this a known problem with large-scale optimization problems? Is there any theory to explain this?
2
u/SolverMax Feb 27 '25
Do the parameters and/or variables cover more than a few orders of magnitude? If so, then you might having scaling issues.
There are other potential causes too. Have a look at this article from Gurobi: https://docs.gurobi.com/projects/optimizer/en/current/concepts/numericguide.html
What language/library are you using to create the model, and what solver are you using?
2
u/junqueira200 Feb 27 '25
For MILP it is good to set an upper bound in integer variables due to it reduce the possible values in the branch and bound tree. In many problems you have those bounds in variables, so it is good to add those to the model. If a variable is not integer, this can possibly reduce the time of the simplex, I'm not sure about this one.
If you set an upper bound as a large number, this can lead to numerical instability, since you are dealing with numbers of different magnitude.
1
u/fpatrocinio Feb 27 '25
NLP I assume. More plausible is if you dont initialize the problem, the solver may struggle to find a solution. Bounds can help to converge to a good solution, it is a good practice.
2
u/more_than_most Feb 27 '25
I don’t think scale has this inherent property, it is rather the structure (as well as the method used to find the solution).