Invalid quadratic form(s): not a square (multiplication variables)

Hi all, I have a problem with a multiplication operation in CVX:
L=[10:5:55];

cvx_begin

variable f(10);

variable t(10);

minimize (sum(pow_p(f(:),3))+sum(100-t(:)));

subject to

0<= f <= 100;

0<= t <= 20;

sum(f.* t)-L ==0; % line 80

cvx_end

But, But I get the following error (in line 80) when I try to run it:

Disciplined convex programming error: Invalid quadratic form(s): not a square.

I will be happy give me some advice how to change it to a proper form?

Thank you for devoting your time.

FAQ: Why doesn’t CVX accept my problem? [READ THIS FIRST]

you are right.

according to this constrain:

sum(f.* t)-L ==0; % line 80

We figure that, this is not convex. :slight_smile:

1 Like