Optimisation for polynomials without multiple roots