'The convex-concave algorithm applied to portfolio analysis