Matlab问题,关于仿射函数乘以一个凸函数不符合cvx规则

You violated CVX’s rules. But I can’t determine whether your optimization problem is convex, because you don’t show what is done with f.

The first thing you should do is determine whether your optimization problem is convex.