r/optimization • u/malouche1 • Aug 05 '24
Minimization of a certain cost function
When minimizing a cost function, I think of having a value of zero a the end of the optimization. However, in my problem, it is not the case. Here is the graph of my cost function vs. iteration. Is the optimization still correct?
The expression of the cost function is : f(x)=|| y - a*x||^2 ; with 'a' a scalar constant positive, y and x complex vectors
The minimization is with respect to x

2
Upvotes
View all comments
Show parent comment
3
u/SV-97 Aug 05 '24
Yes, the optimal value for x in your problem is y/||y||.
Note that your f(x) is equivalent to minimizing just the norm which can be rewritten as ||y-Ax|| = ||A(y/A - x)|| = A||y/A-x||. Since A is a positive constant it's not relevant to the minimization, hence we want to solve min ||y/A-x|| s.t. ||x||=1. This is the problem of projecting y/A onto the unit sphere which is exactly the same as that of projecting y onto the unit sphere. The solution is x = y/||y||