zsummin {orloca} | R Documentation |
Solve the min-sum location problem for a given loca.p class object.
zsummin(o, x=0, y=0, max.iter=100, eps=1.e-3, verbose=FALSE, algorithm="weiszfeld")
o |
An object of loca.p class. |
x |
The x coordinate of the starting point. |
y |
The y coordinate of the starting point. |
max.iter |
Maximum number of iterations allowed. |
eps |
The module of the gradient in the stop rule. |
verbose |
If TRUE the function produces detailed output. |
algorithm |
The method to be use. At the moment, the valid values are: "gradient" or "g" for a gradient based method, "search" or "s" for local search method, and "weiszfeld" or "w" for the weiszfeld method. "weiszfeld" is the default value. |
zsummin
returns an array with the coordinates of the solution point.
See also orloca-package
, loca.p
and zsum
.
# An unweighted new loca.p object loca <- loca.p(x = c(-1, 1, 1, -1), y = c(-1, -1, 1, 1)) # Compute the minimum sol<-zsummin(loca) # Show the results sol # Evaluation of the objective function at solution point zsum(loca, sol[1], sol[2])