How to define the weighted norm of a vector?

1,028 views
Skip to first unread message

Saeed

unread,
Oct 16, 2016, 10:56:08 AM10/16/16
to YALMIP
Hello.

I've seen that the following is used as the objective function in MPC example in Yalmip.

objective = objective +  norm(Q*x{k},1) + norm(R*u{k},1)

Does (Q*x{k},2) is identical  to x{k}' * Q * x{k}?
I couldn't find it in norm command page.
Thanks.

Johan Löfberg

unread,
Oct 16, 2016, 10:58:45 AM10/16/16
to YALMIP
No. Norm follows matlab (and math in general) standard norm definition, so norm(x,2) = sqrt(sum(x.^2)) = sqrt(x'*x) which means norm(Q*x,2) will be sqrt(x'*Q'*Q*x)

Saeed

unread,
Oct 16, 2016, 11:15:54 AM10/16/16
to YALMIP
As I've observed,
x{k}' * Q * x{k} is identical to (norm(Q^(0.5)*x , 2))^2.

Am I right?

Message has been deleted

Johan Löfberg

unread,
Oct 16, 2016, 11:18:42 AM10/16/16
to YALMIP
Yes, by the definition of the Euclidean norm.

Saeed

unread,
Oct 16, 2016, 11:32:09 AM10/16/16
to YALMIP
Thanks very much for your support.

Regards.
Reply all
Reply to author
Forward
0 new messages