Implement convex minimization on an interval | Uber