rloca.p {orloca}R Documentation

rloca.p random instances generator of loca.p class object

Description

It returns a random instance of loca.p class object in a given rectangular region.

Usage

rloca.p(n, xmin=0, xmax=1, ymin=0, ymax=1)

Arguments

n The number of demand points.
xmin Minimun value for the x coordinates of the demand points.
xmax Maximun value for the x coordinates of the demand points.
ymin Minimun value for the y coordinates of the demand points.
ymax Maximun value for the y coordinates of the demand points.

Details

n must be at least 1.

xmin must be less or equal than xmax.

ymin must be less or equal than ymax.

Value

If the arguments are valid values, it returns a new object of class loca_p, else it returns an error.

See Also

See also orloca-package and loca.p

Examples

# A random loca.p object at unit square with 5 demand points
rloca.p(5)

# At another region
rloca.p(10, xmin=-2, xmax=2, ymin=-2, ymax=2)

[Package orloca version 1.0 Index]