Numerical optimization problem