Why is the error reported {convex} .* {real affine}

The argument of inv_pos needs to be concave. But it is not; hence the error.

Have you proven the optimization problem is convex?