Robust algorithm for global optimization problems