zsummin {orloca}R Documentation

zsummin at orloca package

Description

Solve the min-sum location problem for a given loca.p class object.

Usage

zsummin(o, x=0, y=0, n=100, eps=1.e-3, verbose=FALSE, algorithm="weiszfeld")

Arguments

o An object of loca.p class.
x The x coordinate of the starting point.
y The y coordinate of the starting point.
n Maximun number of iterations allowed.
eps The norm 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.

Value

zsummin returns an array with the coordinates of the solution point.

See Also

See also orloca-package, loca.p and zsum.

Examples

# An unweigthed new loca.p object
loca <- new("loca.p", x = c(-1, 1, 1, -1), y = c(-1, -1, 1, 1))

# Compute the minimun
sol<-zsummin(loca)

# Show the results
sol

# Evaluation of the objective function at solution point
zsum(loca, sol[1], sol[2])

[Package orloca version 1.0 Index]