#### Abstract

The Fermat-Weber problem of optimally locating a service facility in the Euclidean continuous two-dimensional space is usually solved by the iterative process first suggested by Weiszfeld or by later versions thereof. The methods are usually rather efficient, but exceptional problems are described in the literature in which the iterative solution is exceedingly long. These problems are such that the solution either coincides with one of the demand points or nearly coincides with it. We describe a noniterative direct alternative, based on the insight that the gradient components of the individual demand points can be considered as pooling forces with respect to the solution point. It is demonstrated that symmetrical problems can thus be optimally solved with no iterations, in analogy to finding the equilibrium point in statics. These include a well-known ill-conditioned problem and its variants, which can now be easily solved to optimality using geometrical considerations.

#### 1. Introduction

The modern problem of finding the optimal location of a service facility with respect to a given set of demand points has emerged from an old geometrical problem. According to Kuhn [1], it was first posed by Fermat early in the 17th century. Torriceli was the first to suggest a geometrical construction for the solution (see Krarup and Vajda [2]), and apparently Steiner solved it again in the 19th century. The problem states: given three noncollinear points, find a point such that the sum of distances to the given points is minimal. The solution is that if all the angles in the triangle formed by the three given points are smaller than 120°, the optimal location is the point from which lines, drawn radially to each demand point, form three 120° angles. Geometrical methods for finding this point were given in the literature (see, e.g., the Georg Pick Mathematical Appendix to the book by Weber [3], Wesolowsky [4], and Martini [5]). If the triangle contains an angle greater than or equal to 120°, then the optimal location is at that vertex. When more than 3 demand points are involved and when different demand points may have different weights, the problem is to minimize the cost function where is the number of given points, is the weight of the th point, and , the Euclidean distance between the th point with coordinates and the point to be located . The problem is often termed the Weber problem, following an important work by Weber [3].

In order to study the properties of the solution, one can write the first derivatives of (1.1), namely, A necessary condition for a point to be a solution is that the sums in (1.2) be equal to zero. Moreover, since the cost function (1.1) is known to be convex (see, e.g., [6]), if there is a local minimum, it must be a global one. Thus, the main aim is to find a point in which , which will be the optimal solution of the problem.

Setting (1.2) to zero yields These equations cannot be solved in closed form, and Weiszfeld [7] suggested an iterative process based on (1.3) (see also the English translation, Weiszfeld and Plastria [8]). Weiszfeld described the iteration scheme as Different suggestions for the first guess for have been given, the “center of gravity” being quite popular. Ostresh [9] and others (see, e.g., [10, 11]) have pointed out that, in fact, Weiszfeld’s method is a steepest descent method, namely, going in the direction given by (1.2), when the step size is determined by the denominator in (1.4). Ostresh has also shown that in many cases, doubling the step size expedites the iterative procedure. Special cases in which the Weiszfeld method does not converge efficiently to the optimal solution have been reported [1, 12–16]). These included cases in which the solution coincided or nearly coincided with one of the demand points. Katz [13] has shown that in cases where the optimal solution coincides with a demand point, the convergence may be sublinear; in some cases, this may result in an extremely slow convergence of the Weiszfeld process, as described in the third example below. Some remedies have been suggested to improve the convergence (e.g., [17–19]).

In some cases, the iterative procedure lands on a demand point which is not the optimum, and since the function is not differentiable at such point, the process cannot proceed. It should be pointed out that Ostresh [9] showed that this problem can be solved in most cases by identifying that the demand point where the solution point is stuck is not the optimal solution, moving away from it and continuing the Weiszfeld iterations. In this context, let us mention a conjecture by Chandrasekaran and Tamir [20] stating that “if the convex hull of the set of vertices is of full dimension, then the set of initial points for which the sequence generated by the Weiszfeld algorithm lands in a vertex is denumerable.” Brimberg [21] has attempted to resolve the open question of Chandrasekaran and Tamir by an analysis of the Jacobian matrix of the iteration function. He concludes that having a convex hull of full dimension is both a necessary and sufficient condition for the set to be denumerable. Cánovas et al. [16] refuted this result by providing counter examples. In a later work, Brimberg [22] resolves the problem. He shows that when the convex hull of the fixed points is contained in an affine subspace of , the set of starting points that terminate the Weiszfeld algorithm prematurely at a fixed point is nondenumerable under these general conditions. However, when the convex hull has full dimension , this set is guaranteed to be denumerable. Thus, the open question posed by Chandrasekaran and Tamir [20] is reclosed.

Note that several authors (e.g., [7]) showed that a demand point is the optimal minimum location if and only if its weight is larger than the norm of the vector sum of the individual gradient elements of the other demand points at the location of point , As pointed out by Chen [23], one may consider the mechanical analog in which in (1.1) is looked upon as a scalar field analogous to the potential in a gravitational or an electric field. The first derivatives in (1.2) can be regarded as the and components of the resultant force acting on the service point which is to be located optimally. From the “physical” point of view, an object is placed in a force field having attracting points distributed in the two-dimensional space. The object is attracted to each of the given points, the attraction toward the th point being proportional to the weight of the point . The direction of the force component is along the line connecting the particle and the -th point. As mentioned by Chen [23] and Wesolowsky [4], the strength of this force element is not dependent on the distance between the particle and the demand point. The problem is that of finding a stationary point for the particle in this field. As opposed to the cases of electrical and gravitational fields where no such stationary point exists, a minimum point always exists under the present circumstances.

It has been mentioned that one of the possibilities is that the solution coincides with one of the demand points. Since the cost function is not differentiable at a demand point, this may cause difficulty if the iterative process steps into a demand point, be it the optimum or not. The possibility of a coincidence of the solution with a demand point has been discussed by Katz [12], Kuhn [1], and others. Katz suggested to first check each demand point for optimality using (1.5) before proceeding with the iterations, and only if none of the demand points is found to be the optimum, should the iterative process be started.

In the next section, we briefly describe the mechanical analog to the Weber problem and then proceed to the class of problems which can be solved noniteratively, using the concept of the attractive force and a specific symmetry of the problem.

#### 2. The Mechanical Analog

In the Mathematical Appendix to the book by Weber [3], Pick describes an analog device previously invented by Varignon to solve the Weber problem (see also Wesolowsky [4]). His approach was mainly intuitive, but the rationale behind it was practically the same as that mentioned above of the potential field and the force concepts. A map of the area in question is placed on a board, and holes are drilled in the points where the demand locations are. Strings are passed through the holes, and weights proportional to the economic “weights” are hung on them. The other edges of the strings are tied together. It is quite obvious that the stationary situation reached after possibly a few oscillations is the equilibrium point, namely, the solution of the minimization problem. Obviously, the accuracy of the method is limited by the friction of the strings in the holes, and, in fact, it looks quite primitive when the alternative of an efficient numerical procedure is available. However, the mechanical analog gives an insight to the properties of the solution.

As explained, the force elements due to each of the demand points are radial in direction, but independent of the distance between the demand point and the location of the service facility. An interesting implication of this fact is that once the location of the solution is known, it is in fact also the solution of other problems in which each demand point can be anywhere along the ray connecting the service facility point and the demand point, and without changing its weight (see [4, 23]). Of course, this does not help in solving the problem, but it does give some understanding of the sensitivity of the solution to changes in the location of the demand point.

#### 3. Noniterative Solution of Some Weber Problems

As pointed out above, one kind of Weber problem that can be solved noniteratively is the scenario where the solution coincides with a demand point. In the present context, this takes place when the weight of a demand point at is larger than the resultant of all the other forces (for all ) at (see, e.g., [10, 23–25]). In the present work, we concentrate on direct solutions in which the service point does not coincide with a demand point. Obviously, this is an equilibrium point where the sum of the pulling forces is nil. The considerations made are very similar to those made in mechanical statics.

The first example is a problem given by Kuhn [1] to demonstrate the possibility that the Weiszfeld method does not converge at all to the optimal solution. The problem with four vertices in the plane is shown in Figure 1. Two demand points with weights are on the -axis at and , and two other demand points with are at and . Kuhn [1] shows that if the starting point for the iterations is , the Weiszfeld step takes us to the demand point A_{1}, which is not the optimum, and gets “stuck” there. As pointed out by Kuhn, the optimal solution is at the origin, . Let us show that by the use of the force concept, this result can be easily reached. From the symmetry of the problem, it is quite obvious that the solution is on the -axis. It is also obvious that it cannot be to the right of A_{2} since all the weights are pulling it to the left. Considering points between A_{1} and A_{2}, we can readily see that the forces of these demand points counterbalance each other, but A_{3} and A_{4} have force components that pull to the left. It is thus obvious that the solution must be between −20 and 20, at a point denoted . The force exerted by A_{3} is of 13 units along the line connecting it to , and it has a horizontal component of to the left, and the same is true for A_{4}. The solution point should be, as stated above, an equilibrium point where the resultant force is nil. With the given weights the components of the forces along the -axis must be balanced, namely,
which yields . From the lower triangle, it is clear that . From a basic trigonometric identity, . Thus, we get , which immediately yields , namely, the solution is at the origin.

The second example has a similar symmetry, but it seems to give a deeper insight into the possibilities of getting the solution noniteratively for symmetric problems. As shown in Figure 2, two equal-weight demand points are located at and . Two other demand points are located on the -axis, at and , with weights of and , respectively. Without loss of generality, we can assume that . Due to the symmetry, the optimal solution is expected to be on the positive side of the -axis, and we are looking for the solution , the location of the solution on the -axis. The pulling force of A_{1} is , and its component along the -axis is to the left.

The same is true for A_{2}, so together, they exert a force of to the left whereas the two -components cancel each other. The resultant force of the two weights on the -axis is . Therefore, the equilibrium condition is
From the lower triangle, it is evident that
and from (3.2) and (3.3), we can write by eliminating
By simple algebra,
Obviously, if and are kept constant and is increased, the solution point moves to the right. The value of is reached when the expression under the square root equals one, which occurs when
According to the previous discussion, for larger values of , the solution point remains at .

Similar considerations apply for other problems, where, for example, A_{1} and A_{2} are on the -axis in a symmetric manner. Also for given values of and , the demand points A_{3} and A_{4} can be moved along the -axis (provided A_{3} is still on the negative side and A_{4} on the positive side), and the solution does not change. The only difference may relate to the end point associated with (3.6). When gets larger, the solution point “gets stuck” at A_{4}. If A_{4} is located farther to the right, using (3.5), we can see, for example, that the condition for the solution to coincide with A_{4} located at is
Since is smaller than , should get larger for a given before the solution lands at .

Similar considerations can be made for problems with more demand points along the -axis and more pairs of points placed symmetrically with respect to the -axis.

We turn now to a problem presented by Drezner [14, 17] which is extremely difficult for the Weiszfeld algorithm. This is shown (not to scale) in Figure 3. It consists of five demand points, four located at the four corners of a unit square, , , , and with weight of 1 each and a fifth point located at with weight of 4. The solution is known to coincide with the latter demand point, but the Weiszfeld procedure requires millions of iterations to get within 0.001 of the optimum. Methods for improving this have been suggested, but we would like to show here that using the forces concept and the symmetry, for this problem and some interesting variants, the solution can be found noniteratively.

From the symmetry, it is evident that the solution should be along the diagonal. If we consider points on the diagonal close to the point at , the latter exerts a force of 4 units upward along the diagonal. The weights at and exert a unity force downwards along the diagonal. Each of the other points, at and , exerts a force of unity along the line connecting it with , and its component along the diagonal is slightly smaller than unity. Thus, no matter how close we are to , the total force downwards along the diagonal is slightly smaller than 4, and the solution point is pulled towards and it ends up at this point.

Let us consider now what happens in cases where the weight at is slightly smaller than 4. One can imagine that from a certain weight down, the solution will be somewhere along the diagonal, between and . Let us denote any point along the diagonal by where . Consider the angle shown in Figure 3. It is easily seen that Using the trigonometric identity we get The components of the weights at and along the diagonal are , and therefore, we can write their contribution to the force downward along the diagonal as For , we get (the angle here is denoted by in Figure 3). Note that the total pulling force downward along the diagonal is 3.9999475 due to the additional unity weights at and . Since gets larger for decreasing , is a slowly increasing function (for larger , gets smaller and gets larger). If is less than 3.99997475, there will be a point of equilibrium on the diagonal for . In order to find this point for a given value of the weight , let us invert the function . For , where , let us find . This will be the point along the diagonal where the forces of all the demand points balance. Starting from we readily get By insertion, we get, for example, ; ; . These, of course, are related to weights of 3.999, 3.9999, and 3.9999747, respectively at . To conclude this example, if the weight of the demand point at is larger than 3.99997475, this point is the optimum. If the weight at is slightly less than 3.99997475 ( slightly less than 1.99997475), the solution is on the diagonal, between and , can be determined by (3.13), and no iterations are required. Note that for the solution to be at , that is, , one gets ; therefore, for a weight of or lower, down to at , the solution coincides with the demand point at . For a weight smaller than at , the solution point is pulled further down along the diagonal. For a weight of zero at , the solution will be at .

#### 4. Conclusion

By the use of the concept of virtual forces, the components of the gradient of the objective function in the Fermat-Weber problem, some problems of this kind can be solved directly, with no iterations. A number of examples in which the demand points are distributed symmetrically with respect to some axis are shown. This includes problems for which the known iterative procedures perform poorly. In particular, the problem given in Figure 3 is of interest. Here, due to the special geometry of the problem, very minute changes in the weight of the demand point at cause large changes in the optimal location on the diagonal. This special property seems to be associated with the exceedingly large number of iterations needed to reach the minimum by using the Weiszfeld method.