Convex and nonconvex optimization geometries