Remove debug output; Stop if the best estimated solution will never lead to a
solution (Infinity).