Weak contraction mapping and topological non-convex optimization