How to solve Disciplined convex programming error: Illegal operation: exp( {affine} )

Your problem is not convex.