Title: Convexity and Optimization in R