Disciplined convex programming error: Cannot perform the operation: {real affine} .* {convex}

If your professor is asking you to figure this out, then it’s probably not the best for us to be doing your work for you. However, please feel free to tell your professor that the author of CVX thinks that he ought to have helped you out weeks ago. :wink: