Re: Linear Optimization problem............



madsvlad@xxxxxxxxx wrote:
> Thanks for the help. Your explanation was extremely helpful.
> The whole thing makes much more sense to me now. I have one
> further question related to the actual minimization process:
>> Then sum_i^N di^2 = (y-z)'*(y-z) + (y-z)'*X*t + t'*X'*X*t,
>> which can be minimized with respect to t in the usual way.
>
> I'm assuming this means that I need to minimize the gradient
> of the distance function?

It's probably better to say that you need to minimize the norm
of the gradient than it is to say that you need to minimize the
gradient itself. Or, better yet, just say that you need to set
the gradient to zero.

>
> grad(di^2) = -2X'*X*t - 2X*(y-z)
>
> Minimization occurs when the gradient is zero hence:
>
> X'*X*t + X'*(y-z) = 0
>
> Is this correct?

Yes, except you've used the formula from my initial post,
which was wrong. The correct expression for sum(di^2) is
(y-z)'*(y-z) - 2(y-z)'*X*t + t'*X'*X*t,
its gradient is -2X'*(y-z) + 2X'*X*t,
and the equation to be solved is X'*X*t = X'*y.

.



Relevant Pages

  • Re: Linear Optimization problem............
    ... Your explanation was extremely helpful. ... I'm assuming this means that I need to minimize the gradient of the ... Minimization occurs when the gradient is zero hence: ...
    (sci.math.num-analysis)
  • Re: a derivative puzzle
    ... Suppose we define some function gof the magnitude of the gradient ... But, working out the calculus, it would appear that the derivative ... So the whole dg/df is zero as a result. ... That notation means ...
    (sci.math)
  • Re: Spiral arms of proton and galaxy
    ... and recall the selected in red, this is really a mistake. ... Substituting ... If you make it, you will yield my result, not zero as ... As to gradient, you bother in vain. ...
    (sci.physics)
  • Re: Spiral arms of proton and galaxy
    ... and recall the selected in red, this is really a mistake. ... Substituting ... If you make it, you will yield my result, not zero as ... As to gradient, you bother in vain. ...
    (sci.astro)
  • Re: Maximization of function with 2 variables
    ... The gradient is available, but has such a structure that it is difficult ... maximum over this region won't necessarily have a zero gradient. ... is zero somewhere far outside your bounding rectangle. ... This is what I guess will happen, but to prove that it is not zero on the interior is quite difficult. ...
    (sci.math)