Disciplined convex programming error: Illegal operation: log( {convex} )

What do you intend to do with a.? Is the overall optimization problem convex?

And in the future, please copy and paste your code, using the Preformatted text icon, rather than posting an image of your code.