minor mods
convexity pattern as a convex program 1-d, v1.1