“Disciplined convex programming error: Illegal operation: exp( {affine} ).”how can I fix it?

The error message does not seem very “accurate”. Nevertheless, CVX does not allow exp(complex expression), because CVX can’t determine curvature (convexity or concavity). CVX only allows nonlinear expressions which are convex or concave.