If the holes have locations x 1 , … , x n {\displaystyle \mathbf {x} _{1},\dots ,\mathbf {x} _{n}} and the masses of the weights are m 1 , . . . , m n {\displaystyle m_{1},...,m_{n}} then the force acting at the i-th string has the magnitude m i ⋅ g {\displaystyle m_{i}\cdot g} ( g = 9.81 m/sec {\displaystyle g=9.81{\text{m/sec}}} : constant of gravity) and direction x i − v ‖ x i − v ‖ {\displaystyle {\tfrac {\mathbf {x} _{i}-\mathbf {v} }{\|\mathbf {x} _{i}-\mathbf {v} \|}}} (unitvector). Summing up all forces and cancelling the common term g {\displaystyle g} one gets the equation
(At the point of equilibrium the sum of all forces is zero !)
This is a non-linear system for the coordinates of point v {\displaystyle \mathbf {v} } which can be solved iteratively by the Weiszfeld-algorithm (see below)2
The connection between equation (1) and equation (2) is:
Hence Function D {\displaystyle D} has at point v {\displaystyle \mathbf {v} } a local extremum and the Varignon frame provides the optimal location experimentally.
For the following example the points are
and the weights
The coordinates of the optimal solution (red) are ( 32.5 , 30.1 ) {\displaystyle (32.5,30.1)} and the optimal weighted sum of lengths is L op = 1679 {\displaystyle L_{\text{op}}=1679} . The second picture shows level curves which consist of points of equal but not optimal sums. Level curves can be used for assigning areas, where the weighted sums do not exceed a fixed level. Geometrically they are implicit curves with equations
Replacing in formula (2) vector v {\displaystyle \mathbf {v} } in the nominator by v k + 1 {\displaystyle \mathbf {v} _{k+1}} and in the denominator by v k {\displaystyle \mathbf {v} _{k}} and solving the equation for v k + 1 {\displaystyle \mathbf {v} _{k+1}} one gets:3
which describes an iteration. A suitable starting point is the center of mass with mass m i {\displaystyle m_{i}} in point x i {\displaystyle \mathbf {x} _{i}} :
This algorithm is called Weiszfeld-algorithm.4
Formula (4) can be seen as the iteration formula for determining the fixed point of function
with fixpoint equation
(see fixed point)
Remark on numerical problems: The iteration algorithm described here may have numerical problems if point v k {\displaystyle \mathbf {v} _{k}} is close to one of the points x 1 , . . . x n {\displaystyle \mathbf {x} _{1},...\mathbf {x} _{n}} .
Z. Drezner, H.W. Hamacher: Facility Location, Springer, 2004, ISBN 3-540-21345-7, p. 7 /wiki/ISBN_(identifier) ↩
Horst W. Hamacher: Mathematische Lösungsverfahren für planare Standortprobleme, Vieweg+Teubner-Verlag, 2019, ISBN 978-3-663-01968-8, p. 31 /wiki/ISBN_(identifier) ↩
Karl-Werner Hansmann :Industrielles Management, De Gruyter Verlag, 2014, ISBN 9783486840827, S. 115 /wiki/ISBN_(identifier) ↩
see Facility location, p. 9 ↩