How to perform non-linear optimization with scipy/numpy or sympy?

前端 未结 4 1417
情书的邮戳
情书的邮戳 2021-02-06 07:23

I am trying to find the optimal solution to the follow system of equations in Python:

(x-x1)^2 + (y-y1)^2 - r1^2 = 0
(x-x2)^2 + (y-y2)^2 - r2^2 = 0
(x-x3)^2 + (y         


        
4条回答
  •  故里飘歌
    2021-02-06 07:40

    These equations can be seen as describing all the points on the circumference of three circles in 2D space. The solution would be the points where the circles intercept.

    The sum of their radii of the circles is smaller than the distances between their centres, so the circles don't overlap. I've plotted the circles to scale below: geometric solution

    There are no points that satisfy this system of equations.

提交回复
热议问题