nr_neighbors | R Documentation |
This function calculates the number of neighboring products for a specific product at a given location in the warehouse.
nr_neighbors(product, location, goods_and_locations, warehouse_height)
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 |
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.
An integer representing the number of neighboring products at the specified location.
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
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")}
scenario <- generate_sample_goods_and_locatons_scenario()
nr <- nr_neighbors(1,1,scenario,25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.