Pātuhitia tēnei: Convex analysis for optimization.