Mathematica 10 generates a warning that it is unable to generate initial points for numerical optimization problems. I picked a particularly simple example. The problem goes away when Abs
is dropped.
NMinimize[{x + y, x >= 0 && Abs[x + 10 y + 100] <= 1}, {x, y}]
NMinimize::incst: "NMinimize was unable to generate any initial points satisfying the inequality constraints {-1+Abs[100+x+10\ y]<=0}. The initial region specified may not contain any feasible points. Changing the initial region or specifying explicit initial points may provide a better solution."
Despite the warning, Mathematica computes the correct solution. How can I get rid of the warning?
Off
. $\endgroup$Abs[expr]<=val
withexpr<=val&&-expr<=val
. I do not know whether this will work in general but I expect it to be useful whenexpr
is linear (NMinimize
uses some linear programming to get initial points). $\endgroup$