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`.
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")