Minimizing pseudoconvex functions on convex compact sets