convex-algorithm