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.