nr_neighbors: Calculate the Number of Neighbors for a Warehouse Location

View source: R/nr_neighbors.R

nr_neighborsR Documentation

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)

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.

Value

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

Author(s)

Krzysztof Dmytrów krzysztof.dmytrow@usz.edu.pl [aut] ORCID: 0000-0001-7657-6063

Andrzej Dudek andrzej.dudek@ue.wroc.pl [aut, cre] ORCID: 0000-0002-4943-8703

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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.37190/ord220203")}

Examples

scenario <- generate_sample_goods_and_locatons_scenario()
nr <- nr_neighbors(1,1,scenario,25)

warehouseTools documentation built on April 3, 2025, 10:29 p.m.