How to solve this problem {real affine}.*{convex}

Nonconvex
Mar 24, 2022
C

I have a constraint as follows
image

where qk,n and ck are variables

but the cvx occurs error

{real affine}.*{convex}

M

if q and c are both variables, that is non-convex. If only one of them were a variable, it would be possible to formulate in CVX.

C
Replying to #2

Sorry, why it is non-convex?

M

Did you carefully read the link?

Basically, you’re multiplying different variables.