storagerackanylogicpicking

AnyLogic: pick multiple products from the same cell in storage racks


I am trying to simulate a distribution center in AnyLogic. I have a question regarding retrieving of products from a storage rack cell.

I store Handling Units (agents) in the storage racks. A Handling Unit consists of multiple items and I want to retrieve these items one-by-one until the number of items in the Handling Unit is reached. I am able to retrieve the entire Handling Unit from the storage rack, but is it also possible to retrieve items from this Handling Unit without retrieving the actual Handling Unit from the storage rack? I think something like the split block can help, but then I get an error message that the storage rack does not contain the agent (as the copy is different from the original in some way?). It would be great if someone could help me with this.

Thanks a lot in advance.


Solution

  • You can only have 1 agent in 1 rack position.

    Several options options:

    1. split them before RackStore and transport them together with some resource. They will not be stored in 1 position, though.
    2. Add a parameter numTaken that reflects the number of subagents (say 5 initially). Everytime your resource is asked to take an individual product, you reduce that number by 1. Instead of picking the parent agent, you create a separate new agent near the Rack position and let the resource transport that away (using a "fake" RackPick that is simply a "MoveTo" block for the resource. Only when the parent agent's numTaken is down to 1 will the resource take the actual agent.

    Both have advantages and disadvantages, depends on your system to decide which one is better.