Tools › Operations Research › Networks and Routing › Facility Location › Example
Two facilities for ten places given by latitude and longitude, with great-circle distances in kilometers
| Tool | Facility Location |
| Source | Original illustrative data (arbitrary coordinates, invented names and truckload counts). Method: Cooper, L. (1963). "Location-Allocation Problems." Operations Research, Vol. 11, pp. 331–343; great-circle distance by the haversine formula on a sphere of radius 6,371.0088 km. |
| Level | Undergraduate |
Problem
Ten customers between 41.55° and 42.45° N and 93.25° and 96.40° W receive 530 truckloads a month. Place two facilities to minimize truckloads times great-circle distance.
Inputs to Enter
- Prairie Junction (42.10, −96.40) 60 truckloads; Willow Bend (42.45, −96.05) 45; Stone Chapel (41.85, −95.70) 80; Red Barn (42.30, −95.35) 35; Elk Crossing (41.60, −96.20) 50
- Lake Corners (42.05, −93.60) 70; Marsh Hollow (42.40, −93.25) 40; Nine Mile (41.75, −93.90) 55; Otter Run (41.55, −93.30) 65; Pine Summit (42.20, −94.10) 30
- Latitude, longitude in kilometers; two facilities
Answers
- One facility: 54,673 truckloads × km at (41.9997, −94.8985); the weighted mean of the coordinates, (41.9759, −94.7991), costs 0.07 % more
- Two facilities: 20,749 truckloads × km, 62.0 % less
- Facility 1 at (41.9561, −95.9019) serves the five western customers (270 truckloads, mean 41.6 km); Facility 2 falls on Lake Corners (42.0500, −93.6000) and serves the five eastern ones (260 truckloads, mean 36.6 km)
- The two-facility figure equals the optimum over every split of the ten customers, each group minimized on the sphere
Notes
Open this case in the tool: /analysis-tools/operations-research/networks/facility-location/?try=lat-lon. Illustrative data; checked against an independent scipy computation on the great-circle objective (test_facility_location.php). Great-circle distances, not road distances; not a site recommendation.
More Examples for This Tool
- One warehouse for ten customers: the least-distance point sits on the heaviest customer, and the center of gravity costs 9 % more
- Center of gravity against the Weber point: one far depot drags the weighted average 15.6 miles and adds 22 % to the haul
- Two groups of towns: a second facility cuts the weighted distance by 76 % (location-allocation)
- Choosing two of six candidate warehouse sites by enumeration (p-median with fixed costs)