My goal is to implement algorithm for fine TDOA multilateration. I calculate the initial guess in a way similar to this answer (it holds that $D_i = D_0 + d_{0i}$ instead of $D_i = D_0 - d_{0i}$). However that answer and next answer suggest to use non-linear regression for fine localization. I have come up with a model
$d_{0i} + D_{0} = \sqrt{(x_i - X)^2 + (y_i - Y)^2} $
where
- $d_{0i}$ is the distance difference between zeroth anchor and i'th anchor which is given
- $D_0$ is the distance between zero'th anchor and tag to be found
- $x_i$ and $y_i$ are coordinates of the i'th anchor that are given, and
- $X$ and $Y$ are coordinates of the tag to be found.
This is how it looks on paper.
I would like to learn how I can use this model to get the final D0, X and Y coordinates. Any tips on how to implement this model/tips on resources is welcome - I guess I have to define a cost function (I don't know how to do that for this model) and then use some minimizer to get the results, but I may be wrong.