Pātuhitia tēnei: Convex Analysis and Minimization Algorithms I