1 Introduction

The Weber problem (Weber 1909; Wesolowsky 1993; Drezner et al. 2002) is one of the most useful and researched problem in the location literature. It is based on a set of demand points generating demand for a facility and the best location of the facility that minimizes the total transportation cost to the facility is sought. Many papers investigate the problem in the plane with Euclidean distances. For a review see Drezner et al. (2002). Weiszfeld (1937) suggested an iterative procedure to solve the problem using Euclidean distances. When using rectilinear distances the problem is separable into two one dimensional problems and the solution in each dimension is the median point (Love et al. 1988; Drezner et al. 2002). This result is the source of the name 1-median problem that was generalized to the p-median problem when the location of p facilities is sought (Current et al. 2002). Hakimi (1964, 1965) proved that the solution in a network environment to the Weber (1-median) problem is on a node of the network which suggests a very simple algorithm for the solution to the Weber problem in a network environment. Therefore, researchers are interested only in developing solution approaches to the p-median problems which are not that simple (Daskin 1995; Current et al. 2002; Alp et al. 2003). p-median problems on the plane are sometimes called location-allocation problems because demand points are allocated among the facilities and the location of each facility is at the Weber solution based on the subset of demand points allocated to it (Cooper 1963; Beaumont 1980; Chen 1983; Love 1976; Love and Morris 1975; Sherali and Shetty 1977).

Moses (1958) introduced specific considerations related to the location of a production firm in his seminal paper about location and the theory of production. He claimed that “there is no need for much of the esoteric paraphernalia sometimes employed by location specialists”, a statement that generated many follow-up papers generalizing his approach (Sakashita 1967; Bradfield 1971; Emerson 1973; Khalili et al. 1974; Osleeb and Cromley 1977; Miller and Jensen 1978). More recent papers on various aspects of the topic are by Martinich and Hurter (1982) and Tobin and Friesz (1986). The book by Hurter and Martinich (1989) provides a comprehensive analysis of the location of a production firm. They consider models that incorporate cost (such as electricity cost that may change by region) and transportation cost (linear in the distance). There are no customers in their models (both the facility and the demand points are part of the firm), and their objective is to minimize the cost to the firm.

Another stream of research considers the cost charged to customers as a variable in location models. The planner determines the cost to be charged to customers in addition to the location decision. Drezner and Wesolowsky (1996) investigated the location-allocation problem making the cost charged to users by a facility a function of the total number of users patronizing the facility. Users select the facility to patronize based on the facility charges and transportation cost. In a competitive environment such a situation may or may not lead to an equilibrium solution (Cournot-Nash or Stackelberg). Such models are discussed in Miller et al. (1992, 1993, 1996, 2007); Tobin et al. (1995); Tobin and Friesz (1986); Friesz et al. (1988a, b, 1989).

Some models assume that demand is declining when the distance to the facility increases. Drezner and Scott (2006) investigated the Weber problem including a queuing component assuming that demand is declining by the distance and therefore some of the demand is lost. Berman et al. (2003) investigated the problem that the reliability of the service, thus demand served, is declining with the distance to the facility. In the competitive facility literature there are many papers that assume that the demand is declining with the distance to the facility (for example, Huff 1964, 1966; Drezner 1994, 1995).

In this paper we investigate a problem where demand depends on the mill price and transportation rate charged by the facility which depend on the distance to the facility. In addition to finding the best location for the facility, there are two parameters to be determined by the planner: the mill price and the transportation rate per unit distance charged by the facility. Demand by customers is elastic and thus depends on the total price charged for the good which depends on the distance between the demand point and the facility.

The paper is organized as follows. In Section 2 the problem is formulated and in Section 3 solution algorithms are presented. In Section 4 computational experiments are reported and we conclude in Section 5.

2 Formulation

A facility needs to be located in the plane to sell goods to a set of demand points. The facility charges the customers for the product a mill price P and a transportation rate T per unit distance. The cost for producing an item is C, and the transportation cost to the company is T 0 per unit distance. One would expect that for profit maximization T ≥ T 0 but the optimal strategy for the company may be to subsidize the transportation rate. Demand by customers is elastic. For customer i demand is w i  − Δw i P T where w i is the y intercept of the elastic demand line and Δw i is its negative slope. P T is the total charged price. The problem is based on three variables: the location of the facility X = (x,y), the mill price charged by the facility P and the transportation rate per unit distance charged by the company T. The problem is to find X, P and T such that the company’s profit is maximized.

Let d i (X) be the distance between demand point i and the facility located at X. The cost charged to demand point i is P i (X) = P + T×d i (X). The demand generated at demand point i is w i  − Δw i P i (X). The total profit of the company, F(X,P,T), to be maximized, is therefore

$$F(X,P,T)=\sum\limits_{i=1}^n\left[w_i-P\Delta w_i-T\Delta w_id_i(X)\right]\left[P-C+(T-T_0)d_i(X)\right]$$
(1)
$$=A_1P^2+2A_2PT+A_3T^2+2A_4P+2A_5T+A_6$$
(2)

where

$$\begin{array}{rll} A_1&=&-\sum\limits_{i=1}^n\Delta w_i;~~ A_2~=~-\sum\limits_{i=1}^n\Delta w_id_i(X);~~ A_3~=~-\sum\limits_{i=1}^n\Delta w_id_i^2(X)\nonumber\\ A_4&=&\frac 1 2\left\{\sum\limits_{i=1}^nw_i+C\sum\limits_{i=1}^n\Delta w_i+T_0\sum\limits_{i=1}^n\Delta w_id_i(X)\right\}\label{As}\nonumber\\ A_5&=&\frac 1 2\left\{\sum\limits_{i=1}^nw_id_i(X)+C\sum\limits_{i=1}^n\Delta w_id_i(X)+T_0\sum\limits_{i=1}^n\Delta w_id_i^2(X)\right\};\nonumber\\ A_6&=&-C\sum\limits_{i=1}^nw_i-T_0\sum\limits_{i=1}^n w_id_i(X) \end{array}$$
(3)

Theorem 1

\(\left[\kern.5pt\sum\limits_{i=1}^n\Delta w_id_i(X)\right]^2\le \sum\limits_{i=1}^n\Delta w_i\sum\limits_{i=1}^n\Delta w_id_i^2(X)\) with equality holding only when all distances are equal to one another.

Proof

By the Schwartz inequality (Hardy et al. 1952): \(\left[\sum\limits_{i=1}^n\Delta w_id_i(X)\right]^2=\left[\sum\limits_{i=1}^n\sqrt{\Delta w_i}\sqrt{\Delta w_i}d_i(X)\right]^2\le \sum\limits_{i=1}^n\Delta w_i\sum\limits_{i=1}^n\Delta w_id_i^2(X) \) with equality holding only when \(K\sqrt{\Delta w_i}=\sqrt{\Delta w_i}d_i(X)\) for a constant K > 0. This is true only if d i (X) = K for all i. □

The function F(X,P,T) Eq. (2) is concave because A 1 ≤ 0, A 3 ≤ 0, and \(A_1A_3-A_2^2\ge 0\) by Theorem 1. Substitute \(P=U-\frac{A_2}{A_1}T\), then

$$\begin{array}{rll} F(X,P,T)&=&A_1U^2-2A_2UT+\frac{A_2^2}{A_1}T^2+2A_2UT-2\frac{A_2^2}{A_1}T^2\nonumber\\ &&+A_3T^2+2A_4U-2A_4\frac{A_2}{A_1}T+2A_5T+A_6\nonumber\\ &=&A_1U^2\!+\!\left(A_3\!-\!\frac{A_2^2}{A_1}\right)T^2\!+\!2A_4U\!+\!2\left(A_5\!-\!A_4\frac{A_2}{A_1}\right)T\!+\!A_6 \end{array}$$
(4)

The maximization of F(X,P,T) Eq. (4) is separable by U and T, and the maximum is achieved for

$$\begin{array}{rll} U&=&-\frac{A_4}{A_1};~~~T=-\frac{A_5-A_4\frac{A_2}{A_1}}{A_3-\frac{A_2^2}{A_1}}=-\frac{A_5A_1-A_4A_2}{A_1A_3-A_2^2};\nonumber\\ P&=&U-\frac{A_2}{A_1}T=\frac{A_5A_2-A_4A_3}{A_1A_3-A_2^2} \end{array}$$
(5)

The objective function to be maximized F(X) after substituting the optimal values of P and T is by Eq. (4):

$$ F(X)=-\frac{A_4^2}{A_1}-\frac{(A_5-A_4\frac{A_2}{A_1})^2}{A_3-\frac{A_2^2}{A_1}}+A_6=-\frac{A_1A_5^2+A_3A_4^2-2A_2A_4A_5}{A_1A_3-A_2^2}+A_6 $$
(6)

Following substitution of Eq. (3) and extensive manipulations:

$$ P=\frac C 2 +\frac{\sum\limits_{i=1}^nw_i\sum\limits_{i=1}^n\Delta w_id_i^2(X)-\sum\limits_{i=1}^nw_id_i(X)\sum\limits_{i=1}^n\Delta w_id_i(X)}{2\left[\sum\limits_{i=1}^n\Delta w_i\sum\limits_{i=1}^n\Delta w_id_i^2(X)-\left\{\sum\limits_{i=1}^n\Delta w_id_i(X)\right\}^2\right]} $$
(7)
$$ T=\frac {T_0}{2} +\frac{\sum\limits_{i=1}^nw_id_i(X)\sum\limits_{i=1}^n\Delta w_i-\sum\limits_{i=1}^nw_i\sum\limits_{i=1}^n\Delta w_id_i(X)}{2\left[\sum\limits_{i=1}^n\Delta w_i\sum\limits_{i=1}^n\Delta w_id_i^2(X)-\left\{\sum\limits_{i=1}^n\Delta w_id_i(X)\right\}^2\right]} $$
(8)

It is interesting to note that for a given location X the optimal value of P Eq. (7) is independent of the value of T 0 and the optimal value of T Eq. (8) is independent on the value of C. They are implicitly dependent on these values because when C or T 0 are changed, the value of the optimal location X may change.

Evaluating the objective function F(X) by substitution of Eq. (3) and simplifying the expressions is quite long and tedious. The result is:

$$\begin{array}{lll} &&\kern-7ptF(\kern-.3ptX\kern.5pt)\!=\nonumber\\ &&\kern2pt\frac{C^2}{4}\kern-.5pt\!\sum\limits_{i=1}^n\!\Delta w_i\!+\!\frac{T_0^2}{4}\!\sum\limits_{i=1}^n\!\Delta w_id_i^2(\kern-.2ptX\kern.3pt)\!-\!\frac{C}{2}\!\sum\limits_{i=1}^nw_i\!-\!\frac{T_0}{2}\!\sum\limits_{i=1}^nw_id_i(\kern-.2ptX\kern.3pt)\!+\!\frac{CT_0}{2}\!\sum\limits_{i=1}^n\!\Delta w_id_i(\kern-.2ptX\kern.3pt)\nonumber\\ &&\kern2pt+\frac{\sum\limits_{i=1}^n\!\Delta w_i\!\left\{\sum\limits_{i=1}^n \!w_id_i(\kern-.2ptX\kern.3pt)\!\right\}^2\!\!+\!\!\left\{\kern-.5pt\sum\limits_{i=1}^n \!w_i\!\right\}^2\!\sum\limits_{i=1}^n\!\Delta\! w_id_i^2(\kern-.2ptX\kern.3pt)\!-\!2\!\sum\limits_{i=1}^nw_i\sum\limits_{i=1}^nw_id_i(\kern-.2ptX\kern.3pt)\!\sum\limits_{i=1}^n\!\Delta \! w_id_i(\kern-.2ptX\kern.3pt)}{4\left[\sum\limits_{i=1}^n\Delta w_i\sum\limits_{i=1}^n\!\Delta w_id_i^2(\kern-.2ptX\kern.3pt)\!-\!\left\{\sum\limits_{i=1}^n\Delta w_id_i(\kern-.2ptX\kern.3pt)\!\right\}^2\right]}\nonumber\\ \end{array}$$
(9)

Note that the denominator of the last term is positive by Theorem 1 unless all distances are equal to one another.

2.1 A special case

If we assume that Δw i  = αw i for some positive α, the optimization problem is simplified. This assumption is equivalent to assuming that demand vanishes at the same charge for all customers. This is a reasonable assumption if the service area is homogenic and customers behave in a similar fashion. It is also plausible that the elasticity of demand is known for the area as a whole and not for each demand point and thus such an assumption is necessary for the application of the model.

The optimal value of P is by Eq. (7):

$$ P=\frac C 2 +\frac{1}{2\alpha} $$
(10)

The optimal value of T by Eq. (8) is

$$ T=\frac{T_0}{2} $$
(11)

Note that for this special case the optimal P and T do not depend on the location of the facility. The following result can be directly obtained by substituting Eqs. (10) and (11) into Eq. (1). We show it by evaluating Eq. (9) for this special case:

$$\begin{array}{rll} F(X)&=&\frac{\alpha C^2\kern-.8pt-\kern-.8pt2C}{4}\kern-.8pt\sum\limits_{i=1}^n\kern-.8ptw_i\kern-.8pt+\kern-.8pt\frac{\alpha T_0^2}{4}\kern-.8pt\sum\limits_{i=1}^n \!w_id_i^2(\kern-.8ptX)\kern-.8pt-\kern-.8pt\frac{(1\!-\!\alpha C)T_0}{2}\sum\limits_{i=1}^n w_id_i(X)\!+\!\frac{\sum\limits_{i=1}^n w_i}{4\alpha}\nonumber\\ &=&\frac{\alpha T_0^2}{4}\sum\limits_{i=1}^nw_id_i^2(X)-\frac{T_0(1-\alpha C)}{2}\sum\limits_{i=1}^nw_id_i(X) +\frac{(1-\alpha C)^2}{4\alpha}\sum\limits_{i=1}^nw_i\nonumber\\ &=&\alpha\!\sum\limits_{i=1}^n\!w_i\!\left\{\frac{T_0}{2}d_i(X)\!-\!\frac{1\!-\!\alpha C}{2\alpha}\right\}^2=\frac{\alpha T_0^2}{4}\sum\limits_{i=1}^nw_i\left\{d_i(X)\!-\!\frac{1\!-\!\alpha C}{\alpha T_0}\right\}^{\kern-.5pt 2} \end{array}$$
(12)

By Eqs. (10) and (11) the condition \(d_i(X)\le\frac{1-\alpha C}{\alpha T_0}\) is equivalent to 2αTd i (X) ≤ 2(1 − αP), or w i  − Δw i (P + Td i (X)) ≥ 0. This means that the demand is non-negative. It is therefore necessary that \(d_i(X)\le\frac{1-\alpha C}{\alpha T_0}\) otherwise the demand is negative which is impossible. Therefore, the value of α must be small enough not to entail negative demand otherwise the data does not accurately reflect actual customer behavior. In conclusion, we must require that \(d_i(X)\le\frac{1-\alpha C}{\alpha T_0}\). Without restrictions on the facility location, the best location of the facility by this formulation is at infinity.

Optimizing Eq. (9) is complicated because of the ratio in the last term of the expression. We therefore propose a different approach to maximizing F(X,P,T).

2.2 An alternative approach

We first find the best price P for a given location X and a transportation rate T.

$$\begin{array}{rll} F(X,P,T)&=&-\left\{\sum\limits_{i=1}^n\Delta w_i\right\}P^{\kern1pt 2}\nonumber\\ &&+\left\{\sum\limits_{i=1}^n\left[w_i-T\Delta w_id_i(X)+C\Delta w_i-\Delta w_i(T-T_0)d_i(X)\right]\right\}P\nonumber\\ &&+\sum\limits_{i=1}^n\left[w_i-\Delta w_iTd_i(X)\right[\left[-C+(T-T_0)d_i(X)\right]\nonumber\\ &=&-aP^{\kern1pt 2}+b\kern-2ptP+c \end{array}$$
(13)

Since a > 0, the maximum of F(X,P,T) is achieved for

$$\begin{array}{rll} P&=&\frac{b}{2a}=\frac{\sum\limits_{i=1}^n\left[w_i+C\Delta w_i-(2T-T_0)\Delta w_id_i(X)\right]}{2\sum\limits_{i=1}^n\Delta w_i}\nonumber\\ &=&\frac C 2+\frac{\sum\limits_{i=1}^nw_i}{2\sum\limits_{i=1}^n\Delta w_i}-(2T-T_0)\frac{\sum\limits_{i=1}^n\Delta w_id_i(X)}{2\sum\limits_{i=1}^n\Delta w_i} \end{array}$$
(14)

with a maximum value of the objective function of \(F(X,T)=\frac{b^2}{4a}+c\).

To simplify we write

$$ \frac{b}{2\sqrt a}=\sum\limits_{i=1}^n\left[-\gamma_id_i(X)+\delta_i\right] $$

and

$$ c=\sum\limits_{i=1}^n\left[-\epsilon_i+\phi_id_i(X)-\theta_id_i^2(X)\right]. $$

where:

$$ \gamma_i=\frac{\Delta w_i\left[2T-T_0\right]}{2\sqrt{\sum\limits_{i=1}^n\Delta w_i}};~~~\delta_i=\frac{w_i+C\Delta w_i}{2\sqrt{\sum\limits_{i=1}^n\Delta w_i}}$$
(15)
$$ \epsilon_i=Cw_i;~~~\phi_i=CT\Delta w_i+w_i(T-T_0);~~~\theta_i=\Delta w_iT(T-T_0) $$
(16)

Therefore, the objective function F(X,T), to be maximized, is:

$$\begin{array}{rll} F(X,T)&=&\left\{\sum\limits_{i=1}^n\left[-\gamma_id_i(X)+\delta_i\right]\right\}^2+\sum\limits_{i=1}^n\left[-\epsilon_i+\phi_id_i(X)-\theta_id_i^2(X)\right]\nonumber\\ &=&\left\{\sum\limits_{i=1}^n\gamma_id_i(X)\right\}^2-\sum\limits_{i=1}^n\theta_id_i^2(X)+\sum\limits_{i=1}^n\left[\phi_i-2\gamma_i\sum\limits_{i=1}^n\delta_i\right]d_i(X)\nonumber\\ &&+\left\{\sum\limits_{i=1}^n\delta_i\right\}^2-\sum\limits_{i=1}^n\epsilon_i\label{opt} \end{array}$$
(17)

Theorem 2

For a given location X, the objective function F(X,T) is concave in T.

Proof

F(X,T) for a given X is a second order polynomial in T. The coefficient of T2 is:

$$ \frac{\left[\sum\limits_{i=1}^n\Delta w_id_i(X)\right]^2}{\sum\limits_{i=1}^n\Delta w_i}-\sum\limits_{i=1}^n\Delta w_id_i^2(X) $$

and the theorem follows by Theorem 1. □

Define

$$\begin{array}{rll} L&=&\sum\limits_{i=1}^n\delta_i;~~~~K=\sum\limits_{i=1}^n\epsilon_i;~~~~\xi_i=\phi_i-2L\gamma_i\\ F_1(X,T)&=&\left\{\sum\limits_{i=1}^n\gamma_id_i(X)\right\}^2;~~~~F_2(X,T)=\sum\limits_{i=1}^n\theta_id_i^2(X)\\ F_3(X,T)&=&\sum\limits_{\xi_i\ge 0}\xi_id_i(X);~~~~F_4(X,T)=-\sum\limits_{\xi_i< 0}\xi_id_i(X) \end{array}$$

and the objective function is:

$$ F(X,T)=F_1(X,T)-F_2(X,T)+F_3(X,T)-F_4(X,T)+L^2-K $$
(18)

3 Solution approach

We propose to find the optimal X for a given T and determine the best T by a golden section search (Zangwill 1969) on the value of T. This approach yields the optimal solution by Theorem 2. Note that for the special case analyzed in Section 2.1 the optimal value of T is known by Eq. (11) and thus there is no need for the golden section search.

We propose to maximize F(X,T) for a given T by the Big Triangle Small Triangle (BTST) approach proposed in Drezner and Suzuki (2004).

3.1 The BTST approach

A feasible region which consists of a finite number of convex polygons is given.

Phase 1:  Each convex polygon is triangulated using the Delaunay triangulation. The vertices of the triangles are the demand points and the vertices of the convex polygon. The union of the triangulations is the initial set of triangles.

Phase 2:  Calculate an upper bound, UB, and a lower bound, LB, for each triangle. Let the largest LB be \(\overline{LB}\). Discard all triangles for which \(U\kern-1ptB\le \overline{LB}(1+\epsilon)\).

Phase 3:  Choose the triangle with the largest LB and divide it into four small triangles by connecting the centers of its sides (see Fig. 1 where the large triangle is split into four small triangles and the smaller lower left triangle is further split into four smaller triangles). Calculate UB and LB for each triangle, and update the \(\overline{LB}\) if necessary. The large triangle and all triangles for which \(U\kern-1ptB\ge \overline{LB}(1+\epsilon)\) are discarded.

Fig. 1
figure 1

Split of a triangle into four small triangles

Stopping Criterion:  The branch and bound is terminated when there are no triangles left. The solution \(\overline{LB}\) is within a relative accuracy of ϵ from the optimum.

Note that: (i) A lower bound in a triangle is the value of the objective function at any point in the triangle (such as the center of gravity). (ii) Since the triangulation is based on the demand points as vertices, no demand point is in the interior of a triangle. This is also true for all triangles generated in the process.

In order to implement the BTST approach we need an upper bound for the value of the objective function in a triangle. To construct such an upper bound we express the function F(X,T) by Eq. (17) as a difference between two convex functions. An upper bound based on a difference between two convex functions proved successful in many papers (Drezner 2007; Drezner and Drezner 2004; Tuy et al. 1995; Drezner and Nickel 2009). For the analysis below we assume a given T and a given triangle. We find an upper bound for F(X,T) at all the points of the triangle.

  • The function F 1(X,T) is convex because γ i are either all positive (when D ≥ T 0/2) or all negative (when D ≤ T 0/2).

  • The function F 2(X,T) is convex for T ≥ T 0 and concave for T ≤ T 0.

  • The functions F 3(X,T) and F 4(X,T) are both convex.

In summary, for a given T, F(X,T) = G 1(X,T) − G 2(X,T) is expressed as a difference between convex functions in X G 1(X,T) and G 2(X,T):

For T ≥ T 0:

$$G_1(X,T)=F_1(X,T)+F_3(X,T)$$
(19)
$$G_2(X,T)=F_2(X,T)+F_4(X,T) $$
(20)

For T < T 0:

$$G_1(X,T)=F_1(X,T)-F_2(X,T)+F_3(X,T)$$
(21)
$$G_2(X,T)=F_4(X,T) $$
(22)

To complete the construction of the upper bound, the function G 2(X,T) is bounded by a tangent plane at a point in the triangle. Specifically, let X 0 be a point in the triangle such as its center of gravity. By the convexity of G 2(X,T), \(G_2(X,T)\ge G_2(X_0,T)+\nabla_X G_2(X_0,T)(X-X_0)=H(X,T)\). Therefore, F(X,T) ≤ G 1(X,T) − H(X,T). Since H(X,T) is a linear function of X, G 1(X,T) − H(X,T) is a convex function of X which obtains its maximum on one of the three vertices of the triangle. The values of G 1(X,T) − H(X,T) at the three vertices of the triangle are calculated, and the upper bound in the triangle UB is the maximum among these three values.

4 Computational experiments

Programs in FortranFootnote 1 using double precision arithmetic were coded, compiled by Intel 9.0 FORTRAN Compiler, and ran on a 2.8GHz Pentium IV desk top computer with 256MB RAM.

Problems with ten values of n demand points between 10 and 10,000 were tested. Ten problems were randomly generated for each value of n for a total of 100 problems. The coordinates of demand points were randomly generated in a unit square. The parameters used are: C = 1, T 0 = 2 and w i  ∈ [10,20]. Δw i was calculated as αw i with α generated in a range. Two ranges for α were tested α ∈ [0.05,0.10] and α ∈ [0.05,0.15]. These values of α are small enough so that demand is positive for a facility located anywhere in the square. The solution by BTST for a given T was calculated to a relative accuracy of ϵ = 10 − 10. The golden section search for the optimal value of T was conducted on the range [-10, 10] to an accuracy of 10 − 5. This means that exactly 30 applications of the BTST are required for a solution of one problem.

Since a constant value of α for all demand points leads to a solution of \(T=\frac{T_0}{2}\) Eq. (11), we also found the solution assuming that \(T=\frac{T_0}{2}\) and compared it with the optimal solution. This experiment also provides the run times required for the solution of the special case analyzed in Section 2.1. Since such a solution requires only one application of the BTST, it is about 30 times faster.

The results are depicted in Tables 1 and 2. In Table 1 the optimal solutions for these problems are given. For each value of n the minimum, maximum and average values for P, T and the run times in seconds are given.

Table 1 Computational results for the mill price and the transportation rate
Table 2 Computational results for T = T 0/2

For any fixed α the optimal \(T=\frac{T_0}{2}=1\). For α ∈ [0.05,0.10] the midrange is α = 0.075 which leads to P = 7.167 and for α ∈ [0.05,0.15] the midrange is α = 0.1 which leads to P = 5.5. By examining Table 1 we conclude that as the number of demand points increases, the optimal values of P and T indeed approach the values of the special case by Eqs. (11) and (10) by using for α the midrange of the interval.

Run times increase by about the square of the value of n and do not vary much for problems with the same n. They are very short considering that 30 applications of BTST are required for the solution of each problem. Problems with n = 10,000 demand points were optimally solved in less than nine minutes.

In Table 2 the results of using \(T=\frac{T_0}{2}=1\) are given. Run times, as expected, are about 30 times shorter. It took less than 8 min to solve all 200 problems reported in Table 2. The optimal values of P are closer to the results by Eq. (10) then those found for the optimal value of T. Note that the optimal value of P for \(T=\frac{T_0}{2}\) is independent of the location of the facility and can be calculated by Eq. (14) because the last term vanishes. The value of the objective function was quite close to optimality. There was one case where the objective function was more than 7% below the optimum but for most problems it was very close.

5 Conclusions

In this paper we optimally solved the problem of locating a facility and determining the mill price and transportation rate it charges the customers to maximize profit. Demand by customers is elastic and declines according to the total cost charged by the facility. Computational experiments demonstrated the effectiveness of the solution approach.

The analysis provided in this paper yields several interesting results.

Once the location of the facility is known (or given):  the optimal mill price charged by the facility is independent on the company’s transportation rate, and the optimal transportation rate charged by the facility is independent on the company’s mill price.

When the elasticity of demand is the same for all customers:  Both the optimal transportation rate and the mill price charged by the facility are independent of the location of the facility. The transportation rate charged by the facility is exactly half the transportation cost to the facility. This means that the transportation rate is subsidized by 50%. This explains the “free shipping” approach adopted by many companies. The mill price that should be charged by the facility can be directly calculated by a simple formula Eq. (10).

As future research we propose to analyze different elasticity assumptions such as a convex decline function of the demand. It may be possible to solve such problems by assuming a linear decline (the derivative of the demand decline function) when the facility is located in the neighborhood of the present facility location and solve the problem iteratively based on the techniques presented in this paper. This means using the values of w i and Δw i as functions of the distance from the facility but fix them at the distances of the present iterate. Note that even when the original problem satisfies the special case requirement (the same elasticity curve for all customers), the resulting optimization procedure for each iteration does not have this property because the elasticity curve depends on the distance from the facility and therefore is different for different demand points. Therefore, the general solution algorithm is required.