On the minimization of the general entropy function on a convex set