Convexity and Optimization in Rn