Plotting

Plotting

This section illustrates the results of the optimization model using visualizations implemented with Plots.jl.

using ShelfSpaceAllocation
output_dir = joinpath("output", "exact", "medium")
parameters = load_json(Params, joinpath(output_dir, "parameters.json"))
variables = load_json(Variables, joinpath(output_dir, "variables.json"))
m = parameters.modules[1]
println(parameters.modules)
Integer[1]

Planogram

plot_planograms(parameters, variables)[m]
0 2500 5000 7500 10000 0 500 1000 1500 2000

Planogram visualizes the product placing on the shelves. Blocks are indicated by the different colors.

Block allocation visualizes the block starting location $x_{b,s}$ and block width $b_{b,s}$ for each block and for each shelf.

Product Facings

plot_product_facings(parameters, variables)
1 26 46 51 76 81 102 199 212 221 0 1 2 3 4 5

Visualizes the number of product facings $∑_s n_{p,s}$ allocated per product. The opaque color indicates the maximum number of facings $N_p^{max}$ allowed per product.

plot_product_facings

Demand and Sales

plot_demand_and_sales(parameters, variables)
1 26 46 51 76 81 102 199 212 221 0 25 50 75 100

Visualizes the sales $s_p$ per product. The opaque color indicates the demand $D_p$ per product.

plot_demand_and_sales

Demand-Sales Percentage

plot_demand_sales_percentage(parameters, variables)
1 2 3 4 5 6 7 8 9 0.0 0.2 0.4 0.6 0.8 1.0
\[\sum_{p∈P_b} s_p / \sum_{p∈P_b} D_p\]

Allocation Amount

plot_allocation_amount(parameters, variables)
1 2 3 4 5 6 7 8 9 0 50 100 150 200

Allocation amount visualizes the total amount of products facings $∑_{p∈P_b,s∈S} n_{p,s}$ allocated to the shelves per block.

plot_allocation_amount

Allocation Percentage

Allocation percentage visualizes the relative amount of product facings allocated to the shelves per block. Calculated by dividing the absolute amount of product facing allocated per block by the number of products that could be allocated to the shelves per block if there were no products from other blocks.

plot_allocation_percentage