Differentially private convex optimization with piecewise affine objectives