Convexity and well posed problems