Optimization with respect to matrix

조회 수: 2 (최근 30일)
Mateusz
Mateusz 2011년 8월 30일
Hi,
I have the following problem to solve: argmin_X || Xu - b ||^2 where u and b are given (vectors), and || . || is l-2 norm. So it looks like ordinary least squares but with optimization that goes over matrix X. Is it possible to do this in Matlab?
  댓글 수: 3
Mateusz
Mateusz 2011년 8월 30일
It should be argmin, not armin.
argmin_X represents minimization with respect to X.
So argmin_X f(X) means minimization of the objective f with respect to X.
Chaowei Chen
Chaowei Chen 2011년 9월 3일
what is the dimension of u and b? But generally I think you will get infinite many solutions giving you || X*u - b || ^2 =0.
For example, say u and b are both 2D vectors. X is therefore 2 by 2 matrix, having 4 degree of freedom to let you assign values. You can arbitrarily choose x_11 and x_12 such that u_1*x_11+u_2*x_12=b_1 and u_1*x_21+u_2*x_22=b_2. Therefore, the 2-norm is zero.

댓글을 달려면 로그인하십시오.

답변 (1개)

Daniel Shub
Daniel Shub 2011년 8월 30일
The l^2-norm does not care about the shape of your data so you can just reshape your matrix into a vector.
u = u(:);
b = b(:);
  댓글 수: 3
Daniel Shub
Daniel Shub 2011년 8월 30일
see my edit.
Mateusz
Mateusz 2011년 8월 30일
Well, I think it doesn't make sense.
u and b are vectors. X is a matrix.
If X := X(:) and do nothing with u and b (u(:) do nothing with vectors), then I have problems with dimensions (u and b has different dimensionality).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by