In my AnyLogic model, I have a factory which produces 100 Products (of class Product). The batch block packs these 100 boxes into one Inventory agent (of class Inventory). As it can be seen from the picture AnyLogic Model, the Seize block seizes one truck from the resource pool. This truck is supposed to attach batched Inventory agent from nodeShippingArea to nodeShopStorage. However, after the release block, when Inventory enters the unbatch block, the unbatch block fails to extract previous 100 products. Instead it outputs 1 agent of type Product. I assume the problem lies within the Seize/Release blocks, because when I place the unbatch block before the seize block, everything works correctly. However, I need to unbatch the inventory block after it reaches the nodeShopStorage. What can be the problem here?
4