Learn R Programming

warehouseTools (version 0.1.2)

nr_neighbors: Calculate the Number of Neighbors for a Warehouse Location

Description

This function calculates the number of neighboring products for a specific product at a given location in the warehouse.

Usage

nr_neighbors(product, location, goods_and_locations, warehouse_height)

Value

An integer representing the number of neighboring products at the specified location.

Arguments

product

The product for which neighbors are being calculated.

location

The specific location of the product in the warehouse.

goods_and_locations

A data frame containing the products and their corresponding locations in the warehouse. It should have at least two columns: `product` and `location`.

warehouse_height

warehouse height

Details

The function calculates how many products share a similar location pattern in the warehouse by grouping locations and checking whether they fall within the same row or column as the provided location. The function returns the total number of products in the same general area, excluding the current product.

References

Dmytrów, K. (2022). Analytical and simulation determination of order picking time in a low storage warehouse for shared storage systems. Operations Research and Decisions, 32(2), 34–51. tools:::Rd_expr_doi("10.37190/ord220203")

Examples

Run this code
scenario <- generate_sample_goods_and_locatons_scenario()
nr <- nr_neighbors(1,1,scenario,25)

Run the code above in your browser using DataLab