Trilateration when only combinations of distance are available











up vote
0
down vote

favorite












My problem setup is as shown below:



enter image description here



I know the location (x,y) of fixed points p1+, p1-, p2+, and p2-, and want to find the position marked "o" by trilateration. However, I do not know the individual distances r1+, r1-, r2+ and r2-. Rather, I have the following system of equations available:



$begin{align}
frac{1}{r_{1+}}-frac{1}{r_{1-}}&=V_1\
frac{1}{r_{2+}}-frac{1}{r_{2-}}&=V_2\
frac{1}{r_{3+}}-frac{1}{r_{3-}}&=V_3\
frac{1}{r_{4+}}-frac{1}{r_{4-}}&=V_4\
frac{1}{r_{5+}}-frac{1}{r_{5-}}&=V_5
end{align}$



I couldn't figure out an analytical solution to this system of equations, even though there are really only 3 unknowns -- (x,y) of the the point marked o, and thought the solution needs to be found numerically...



Thus my question is, is my conclusion correct in that analytical solution isn't possible?





Edit: 11/15/2018



So after concluding analytical solution is most likely not feasible, I decided to use Newton's method:



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-mathbf{J}(mathbf{x}^{(k+1)})^{-1}mathbf{F}(mathbf{x}^{(k-1)})$



where $mathbf{x}^{(k)}$ is the estimate of the unknown point's position $[x^{(k)};y^{(k)};z^{(k)}]$ on the k-th iteration,



$mathbf{F}$ is the value of my equations, where the i-th row is:



$V_i-frac{1}{sqrt{(x^{(k)}-x_{i+})^2+(y^{(k)}-y_{i+})^2+(z^{(k)}-z_{i+})^2}}+frac{1}{sqrt{(x^{(k)}-x_{i-})^2+(y^{(k)}-y_{i-})^2+(z^{(k)}-z_{i-})^2}}$,



where $[x_{i+},y_{i+},z_{i+}]$ and $[x_{i-}, y_{i-},z_{i-}]$ are the position of known points pi+ and pi- as shown in the picture.



$mathbf{J}$ is the Jacobian matrix.



In the Newton update equation, getting $mathbf{J}(mathbf{x})^{-1}$ requires the Jacobian to be square. In my problem, there are more equations (5) than variables (3). Using the pseudo-inverse such that the update equation becomes



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-(mathbf{J}^T mathbf{J})^{-1}mathbf{J}^Tmathbf{F}(mathbf{x}^{(k-1)})$



gives unstable behavior and yielded estimates of the unknown point falling outside the circle.



I also tried using a "boosting method" -- at each iteration k, pick three rows where F is the greatest...this also had convergence issues.



In the end, I decided on using gradient descent, with loss function being the sum-of-squared differences between estimated and actual $V$ values.










share|cite|improve this question
























  • What are $r5+$ and $r5-$ ? Are they ascribed to a particular length visible in this figure ?
    – Jean Marie
    yesterday










  • Yes, I didn't mention that there may be more than two pairs of known points on the circle -- i.e. there are p3+,p3-, p4+,p4-, and p5+, p5- whose positions are known.
    – Asy
    yesterday















up vote
0
down vote

favorite












My problem setup is as shown below:



enter image description here



I know the location (x,y) of fixed points p1+, p1-, p2+, and p2-, and want to find the position marked "o" by trilateration. However, I do not know the individual distances r1+, r1-, r2+ and r2-. Rather, I have the following system of equations available:



$begin{align}
frac{1}{r_{1+}}-frac{1}{r_{1-}}&=V_1\
frac{1}{r_{2+}}-frac{1}{r_{2-}}&=V_2\
frac{1}{r_{3+}}-frac{1}{r_{3-}}&=V_3\
frac{1}{r_{4+}}-frac{1}{r_{4-}}&=V_4\
frac{1}{r_{5+}}-frac{1}{r_{5-}}&=V_5
end{align}$



I couldn't figure out an analytical solution to this system of equations, even though there are really only 3 unknowns -- (x,y) of the the point marked o, and thought the solution needs to be found numerically...



Thus my question is, is my conclusion correct in that analytical solution isn't possible?





Edit: 11/15/2018



So after concluding analytical solution is most likely not feasible, I decided to use Newton's method:



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-mathbf{J}(mathbf{x}^{(k+1)})^{-1}mathbf{F}(mathbf{x}^{(k-1)})$



where $mathbf{x}^{(k)}$ is the estimate of the unknown point's position $[x^{(k)};y^{(k)};z^{(k)}]$ on the k-th iteration,



$mathbf{F}$ is the value of my equations, where the i-th row is:



$V_i-frac{1}{sqrt{(x^{(k)}-x_{i+})^2+(y^{(k)}-y_{i+})^2+(z^{(k)}-z_{i+})^2}}+frac{1}{sqrt{(x^{(k)}-x_{i-})^2+(y^{(k)}-y_{i-})^2+(z^{(k)}-z_{i-})^2}}$,



where $[x_{i+},y_{i+},z_{i+}]$ and $[x_{i-}, y_{i-},z_{i-}]$ are the position of known points pi+ and pi- as shown in the picture.



$mathbf{J}$ is the Jacobian matrix.



In the Newton update equation, getting $mathbf{J}(mathbf{x})^{-1}$ requires the Jacobian to be square. In my problem, there are more equations (5) than variables (3). Using the pseudo-inverse such that the update equation becomes



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-(mathbf{J}^T mathbf{J})^{-1}mathbf{J}^Tmathbf{F}(mathbf{x}^{(k-1)})$



gives unstable behavior and yielded estimates of the unknown point falling outside the circle.



I also tried using a "boosting method" -- at each iteration k, pick three rows where F is the greatest...this also had convergence issues.



In the end, I decided on using gradient descent, with loss function being the sum-of-squared differences between estimated and actual $V$ values.










share|cite|improve this question
























  • What are $r5+$ and $r5-$ ? Are they ascribed to a particular length visible in this figure ?
    – Jean Marie
    yesterday










  • Yes, I didn't mention that there may be more than two pairs of known points on the circle -- i.e. there are p3+,p3-, p4+,p4-, and p5+, p5- whose positions are known.
    – Asy
    yesterday













up vote
0
down vote

favorite









up vote
0
down vote

favorite











My problem setup is as shown below:



enter image description here



I know the location (x,y) of fixed points p1+, p1-, p2+, and p2-, and want to find the position marked "o" by trilateration. However, I do not know the individual distances r1+, r1-, r2+ and r2-. Rather, I have the following system of equations available:



$begin{align}
frac{1}{r_{1+}}-frac{1}{r_{1-}}&=V_1\
frac{1}{r_{2+}}-frac{1}{r_{2-}}&=V_2\
frac{1}{r_{3+}}-frac{1}{r_{3-}}&=V_3\
frac{1}{r_{4+}}-frac{1}{r_{4-}}&=V_4\
frac{1}{r_{5+}}-frac{1}{r_{5-}}&=V_5
end{align}$



I couldn't figure out an analytical solution to this system of equations, even though there are really only 3 unknowns -- (x,y) of the the point marked o, and thought the solution needs to be found numerically...



Thus my question is, is my conclusion correct in that analytical solution isn't possible?





Edit: 11/15/2018



So after concluding analytical solution is most likely not feasible, I decided to use Newton's method:



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-mathbf{J}(mathbf{x}^{(k+1)})^{-1}mathbf{F}(mathbf{x}^{(k-1)})$



where $mathbf{x}^{(k)}$ is the estimate of the unknown point's position $[x^{(k)};y^{(k)};z^{(k)}]$ on the k-th iteration,



$mathbf{F}$ is the value of my equations, where the i-th row is:



$V_i-frac{1}{sqrt{(x^{(k)}-x_{i+})^2+(y^{(k)}-y_{i+})^2+(z^{(k)}-z_{i+})^2}}+frac{1}{sqrt{(x^{(k)}-x_{i-})^2+(y^{(k)}-y_{i-})^2+(z^{(k)}-z_{i-})^2}}$,



where $[x_{i+},y_{i+},z_{i+}]$ and $[x_{i-}, y_{i-},z_{i-}]$ are the position of known points pi+ and pi- as shown in the picture.



$mathbf{J}$ is the Jacobian matrix.



In the Newton update equation, getting $mathbf{J}(mathbf{x})^{-1}$ requires the Jacobian to be square. In my problem, there are more equations (5) than variables (3). Using the pseudo-inverse such that the update equation becomes



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-(mathbf{J}^T mathbf{J})^{-1}mathbf{J}^Tmathbf{F}(mathbf{x}^{(k-1)})$



gives unstable behavior and yielded estimates of the unknown point falling outside the circle.



I also tried using a "boosting method" -- at each iteration k, pick three rows where F is the greatest...this also had convergence issues.



In the end, I decided on using gradient descent, with loss function being the sum-of-squared differences between estimated and actual $V$ values.










share|cite|improve this question















My problem setup is as shown below:



enter image description here



I know the location (x,y) of fixed points p1+, p1-, p2+, and p2-, and want to find the position marked "o" by trilateration. However, I do not know the individual distances r1+, r1-, r2+ and r2-. Rather, I have the following system of equations available:



$begin{align}
frac{1}{r_{1+}}-frac{1}{r_{1-}}&=V_1\
frac{1}{r_{2+}}-frac{1}{r_{2-}}&=V_2\
frac{1}{r_{3+}}-frac{1}{r_{3-}}&=V_3\
frac{1}{r_{4+}}-frac{1}{r_{4-}}&=V_4\
frac{1}{r_{5+}}-frac{1}{r_{5-}}&=V_5
end{align}$



I couldn't figure out an analytical solution to this system of equations, even though there are really only 3 unknowns -- (x,y) of the the point marked o, and thought the solution needs to be found numerically...



Thus my question is, is my conclusion correct in that analytical solution isn't possible?





Edit: 11/15/2018



So after concluding analytical solution is most likely not feasible, I decided to use Newton's method:



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-mathbf{J}(mathbf{x}^{(k+1)})^{-1}mathbf{F}(mathbf{x}^{(k-1)})$



where $mathbf{x}^{(k)}$ is the estimate of the unknown point's position $[x^{(k)};y^{(k)};z^{(k)}]$ on the k-th iteration,



$mathbf{F}$ is the value of my equations, where the i-th row is:



$V_i-frac{1}{sqrt{(x^{(k)}-x_{i+})^2+(y^{(k)}-y_{i+})^2+(z^{(k)}-z_{i+})^2}}+frac{1}{sqrt{(x^{(k)}-x_{i-})^2+(y^{(k)}-y_{i-})^2+(z^{(k)}-z_{i-})^2}}$,



where $[x_{i+},y_{i+},z_{i+}]$ and $[x_{i-}, y_{i-},z_{i-}]$ are the position of known points pi+ and pi- as shown in the picture.



$mathbf{J}$ is the Jacobian matrix.



In the Newton update equation, getting $mathbf{J}(mathbf{x})^{-1}$ requires the Jacobian to be square. In my problem, there are more equations (5) than variables (3). Using the pseudo-inverse such that the update equation becomes



$mathbf{x}^{(k)}=mathbf{x}^{(k+1)}-(mathbf{J}^T mathbf{J})^{-1}mathbf{J}^Tmathbf{F}(mathbf{x}^{(k-1)})$



gives unstable behavior and yielded estimates of the unknown point falling outside the circle.



I also tried using a "boosting method" -- at each iteration k, pick three rows where F is the greatest...this also had convergence issues.



In the end, I decided on using gradient descent, with loss function being the sum-of-squared differences between estimated and actual $V$ values.







geometry circle triangulation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 21 hours ago

























asked yesterday









Asy

133




133












  • What are $r5+$ and $r5-$ ? Are they ascribed to a particular length visible in this figure ?
    – Jean Marie
    yesterday










  • Yes, I didn't mention that there may be more than two pairs of known points on the circle -- i.e. there are p3+,p3-, p4+,p4-, and p5+, p5- whose positions are known.
    – Asy
    yesterday


















  • What are $r5+$ and $r5-$ ? Are they ascribed to a particular length visible in this figure ?
    – Jean Marie
    yesterday










  • Yes, I didn't mention that there may be more than two pairs of known points on the circle -- i.e. there are p3+,p3-, p4+,p4-, and p5+, p5- whose positions are known.
    – Asy
    yesterday
















What are $r5+$ and $r5-$ ? Are they ascribed to a particular length visible in this figure ?
– Jean Marie
yesterday




What are $r5+$ and $r5-$ ? Are they ascribed to a particular length visible in this figure ?
– Jean Marie
yesterday












Yes, I didn't mention that there may be more than two pairs of known points on the circle -- i.e. there are p3+,p3-, p4+,p4-, and p5+, p5- whose positions are known.
– Asy
yesterday




Yes, I didn't mention that there may be more than two pairs of known points on the circle -- i.e. there are p3+,p3-, p4+,p4-, and p5+, p5- whose positions are known.
– Asy
yesterday










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










I realize now that I haven't taken into account the fact that the values $r1+, r1-$, etc. are only known through the system of equations you give. But nevertheless, I am going to show that even if we know these four values, we are practically unable to find an exact solution.



I recall first that an ellipse with focii $F$ and $F'$ is the locus of points $M$ such that the sum of distances $MF+MF'$ is a constant $k$.



Here, point $O$ belongs in particular to




  • the ellipse with focii $p1-$ and $p2-$ and constant $k=r1-+r2-$, and to


  • the ellipse with focii $p1+$ and $p2+$ and constant $k=r1++r2+$.



Otherwise said, point $O$ is an intersection point of these two ellipses. Knowing that an ellipse has a second degree equation, the coordinates of $O$ involve a $2^2=4$th degree equation (a rapid check : indeed, two ellipses can have up to 4 intersection points).



Thus, theoretically, you could get an (awfully complicated) analytical answer, but practically speaking, you have to look for a numerical method.



Remarks :



1) One could have chosen other ellipses such as the one with focii $p2+$ and $p1-$. There is no guarantee that the $binom{4}{2}=6$ ellipses and the $binom{6}{2}=15$ intersection points (at least) you can get in this way will intersect in a very same point due to measuring errors. Therefore, the numerical method you will use needs a "least squares" step.



2) one could have used hyperbolas instead of ellipses.



3) the fact that the 4 points $p1+, ...$ belong to a same circle hasn't been used.






share|cite|improve this answer























    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999356%2ftrilateration-when-only-combinations-of-distance-are-available%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    I realize now that I haven't taken into account the fact that the values $r1+, r1-$, etc. are only known through the system of equations you give. But nevertheless, I am going to show that even if we know these four values, we are practically unable to find an exact solution.



    I recall first that an ellipse with focii $F$ and $F'$ is the locus of points $M$ such that the sum of distances $MF+MF'$ is a constant $k$.



    Here, point $O$ belongs in particular to




    • the ellipse with focii $p1-$ and $p2-$ and constant $k=r1-+r2-$, and to


    • the ellipse with focii $p1+$ and $p2+$ and constant $k=r1++r2+$.



    Otherwise said, point $O$ is an intersection point of these two ellipses. Knowing that an ellipse has a second degree equation, the coordinates of $O$ involve a $2^2=4$th degree equation (a rapid check : indeed, two ellipses can have up to 4 intersection points).



    Thus, theoretically, you could get an (awfully complicated) analytical answer, but practically speaking, you have to look for a numerical method.



    Remarks :



    1) One could have chosen other ellipses such as the one with focii $p2+$ and $p1-$. There is no guarantee that the $binom{4}{2}=6$ ellipses and the $binom{6}{2}=15$ intersection points (at least) you can get in this way will intersect in a very same point due to measuring errors. Therefore, the numerical method you will use needs a "least squares" step.



    2) one could have used hyperbolas instead of ellipses.



    3) the fact that the 4 points $p1+, ...$ belong to a same circle hasn't been used.






    share|cite|improve this answer



























      up vote
      0
      down vote



      accepted










      I realize now that I haven't taken into account the fact that the values $r1+, r1-$, etc. are only known through the system of equations you give. But nevertheless, I am going to show that even if we know these four values, we are practically unable to find an exact solution.



      I recall first that an ellipse with focii $F$ and $F'$ is the locus of points $M$ such that the sum of distances $MF+MF'$ is a constant $k$.



      Here, point $O$ belongs in particular to




      • the ellipse with focii $p1-$ and $p2-$ and constant $k=r1-+r2-$, and to


      • the ellipse with focii $p1+$ and $p2+$ and constant $k=r1++r2+$.



      Otherwise said, point $O$ is an intersection point of these two ellipses. Knowing that an ellipse has a second degree equation, the coordinates of $O$ involve a $2^2=4$th degree equation (a rapid check : indeed, two ellipses can have up to 4 intersection points).



      Thus, theoretically, you could get an (awfully complicated) analytical answer, but practically speaking, you have to look for a numerical method.



      Remarks :



      1) One could have chosen other ellipses such as the one with focii $p2+$ and $p1-$. There is no guarantee that the $binom{4}{2}=6$ ellipses and the $binom{6}{2}=15$ intersection points (at least) you can get in this way will intersect in a very same point due to measuring errors. Therefore, the numerical method you will use needs a "least squares" step.



      2) one could have used hyperbolas instead of ellipses.



      3) the fact that the 4 points $p1+, ...$ belong to a same circle hasn't been used.






      share|cite|improve this answer

























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        I realize now that I haven't taken into account the fact that the values $r1+, r1-$, etc. are only known through the system of equations you give. But nevertheless, I am going to show that even if we know these four values, we are practically unable to find an exact solution.



        I recall first that an ellipse with focii $F$ and $F'$ is the locus of points $M$ such that the sum of distances $MF+MF'$ is a constant $k$.



        Here, point $O$ belongs in particular to




        • the ellipse with focii $p1-$ and $p2-$ and constant $k=r1-+r2-$, and to


        • the ellipse with focii $p1+$ and $p2+$ and constant $k=r1++r2+$.



        Otherwise said, point $O$ is an intersection point of these two ellipses. Knowing that an ellipse has a second degree equation, the coordinates of $O$ involve a $2^2=4$th degree equation (a rapid check : indeed, two ellipses can have up to 4 intersection points).



        Thus, theoretically, you could get an (awfully complicated) analytical answer, but practically speaking, you have to look for a numerical method.



        Remarks :



        1) One could have chosen other ellipses such as the one with focii $p2+$ and $p1-$. There is no guarantee that the $binom{4}{2}=6$ ellipses and the $binom{6}{2}=15$ intersection points (at least) you can get in this way will intersect in a very same point due to measuring errors. Therefore, the numerical method you will use needs a "least squares" step.



        2) one could have used hyperbolas instead of ellipses.



        3) the fact that the 4 points $p1+, ...$ belong to a same circle hasn't been used.






        share|cite|improve this answer














        I realize now that I haven't taken into account the fact that the values $r1+, r1-$, etc. are only known through the system of equations you give. But nevertheless, I am going to show that even if we know these four values, we are practically unable to find an exact solution.



        I recall first that an ellipse with focii $F$ and $F'$ is the locus of points $M$ such that the sum of distances $MF+MF'$ is a constant $k$.



        Here, point $O$ belongs in particular to




        • the ellipse with focii $p1-$ and $p2-$ and constant $k=r1-+r2-$, and to


        • the ellipse with focii $p1+$ and $p2+$ and constant $k=r1++r2+$.



        Otherwise said, point $O$ is an intersection point of these two ellipses. Knowing that an ellipse has a second degree equation, the coordinates of $O$ involve a $2^2=4$th degree equation (a rapid check : indeed, two ellipses can have up to 4 intersection points).



        Thus, theoretically, you could get an (awfully complicated) analytical answer, but practically speaking, you have to look for a numerical method.



        Remarks :



        1) One could have chosen other ellipses such as the one with focii $p2+$ and $p1-$. There is no guarantee that the $binom{4}{2}=6$ ellipses and the $binom{6}{2}=15$ intersection points (at least) you can get in this way will intersect in a very same point due to measuring errors. Therefore, the numerical method you will use needs a "least squares" step.



        2) one could have used hyperbolas instead of ellipses.



        3) the fact that the 4 points $p1+, ...$ belong to a same circle hasn't been used.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited yesterday

























        answered yesterday









        Jean Marie

        28k41848




        28k41848






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999356%2ftrilateration-when-only-combinations-of-distance-are-available%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei