orloca-package: Operations Research LOCational Analysis Models

orloca-packageR Documentation

Operations Research LOCational Analysis Models

Description

Objects and methods to handle and solve the min-sum location problem, also known as Fermat-Weber problem.

Details


Package:   orloca

Type:      Package

Version:   5.6

Date:      2024-01-31

License:   GPL (>= 3)

The min-sum location problem search for a point such that the weighted sum of the distances to the demand points are minimized. See "The Fermat-Weber location problem revisited" by Brimberg, Mathematical Programming, 1, pg. 71-76, 1995, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/BF01592245")}.

General global optimization algorithms are used to solve the problem, along with the adhoc Weiszfeld method, see "Sur le point pour lequel la Somme des distances de n points donnes est minimum", by E. Weiszfeld, Tohoku Mathematical Journal, First Series, 43, pg. 355-386, 1937 or "On the point for which the sum of the distances to n given points is minimum", by E. Weiszfeld and F. Plastria, Annals of Operations Research, 167, pg. 7-41, 2009, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s10479-008-0352-z")}.

The package provides a class loca.p that represents a location problem with a finite set of demand points on the plane. Also, it is possible to plot the points and the objective function. Such objective function is the total weighted distances travelled by all the customers to the service.

Non-planar location problems could be handle in future versions of the package.

For a demo, load the package with the instruction library(orloca), and run the demo executing the instruction demo(orloca).

The package is ready for internationalization. The author kindly ask for translated version of the .mo file to include in the package.

Author(s)

Manuel Munoz-Marquez <manuel.munoz@uca.es>

Mantainer: Manuel Munoz-Marquez <manuel.munoz@uca.es>

References

[1] Brimberg, J. The Fermat-Weber location problem revisited, Mathematical Programming, 1, pg. 71-76, 1995. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/BF01592245")}.

[2] Love, R. F., Morris, J. G., Wesolowsky, G. O. Facilities Location: Chapter 2: Introduction to Single-Facility Location, 1988, North-Holland. ISBN: 0-444-01031-9.

[3] Weiszfeld, E. and Plastria, F. On the point for which the sum of the distances to n given points is minimum, Annals of Operations Research, 167, pg. 7-41, 2009, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s10479-008-0352-z")}.

[4] http://knuth.uca.es/orloca/

See Also

Useful links:

Examples

# A new unweighted loca.p object
o <- loca.p(x = c(-1, 1, 1, -1), y = c(-1, -1, 1, 1))

# Compute the sum of distances to point (3, 4)
# [1] 20.39384
distsum(o, 3, 4)

# Compute the sum of distances to point (3, 4) using lp norm with p = 2.5
# [1] 19.27258
distsum(o, 3, 4, lp = 2.5)

# Solve the optimization problem
# [1] 0 0
distsummin(o)

# Contour plot
contour(o)

# Run a demo of the package
demo(orloca)


orloca documentation built on Feb. 1, 2024, 3 p.m.