Homotopy-continuation algorithm for global optimization