Always remind me the Illegal operation: log( {convex} )

You haven’t provided enough information. The first thing you need to do is prove your optimization problem is convex.