question

basem avatar image
0 Likes"
basem asked Felix Möhlmann answered

switch between queues if storage full

I have this model for storage simulation.

Project Description

I am working on a warehouse storage simulation in FlexSim, where different types of items (Boxes, Cylinders, and Spheres) are received from multiple sources and stored in various storage locations, including racks and floor storage. The main goal is to optimize how these items are stored and retrieved efficiently.

Current System Logic

  • Items from 6 SOURCES are sent to MAIN QUEUE which distrbute item to Queue_Storage1.
  • Queue_Storage1 distributes items to available Racks, FloorStorages based on item type using a port-by-case rule.
  • Once storage is full, the system currently switches storage every 90 days, moving items to Queue_Storage2 for storage in another set of racks and floor locations.
  • When items reach the end of the 90-day period, they are sent to an auction for clearance.

Why I Want to Change This Logic

The 90-day rule does not effectively represent real-world scenarios where storage space is dynamic. Instead, I want to change the logic so that:

  1. Storage Switching is Based on Capacity:

    • Instead of switching every 90 days, the system should only switch when all storage locations in the active queue are full.
    • If Queue_Storage1 is full, then new items should go to Queue_Storage2.
  2. Source Behavior Based on Storage Availability:

    • If a specific storage location is full, the corresponding source should stop exporting items until space is available.
    • This ensures that overcrowding does not occur and items are only produced when there is space.
  3. Items Sent to Auction :

    • when storage is full, the item goes to auction.. the storage should be empty in 3 month

What I Need Help With


Switch queues only when storage is full.
Stop sources from producing when storage is full.


  • Is there a way to check if storage is full?
  • how can i make the source stopping/restarting logic?
  • Any best practices for handling auctions in FlexSim?

    this is my file

    test.fsm
FlexSim 24.2.2
storage swap
test.fsm (75.8 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Since some of the items take up different amount of space you can't really know if a rack is full until an item doesn't find a slot it in.

So I would find a slot for the items before they are transported to one of the two queues. When none can be found, the storage objects where the logic searches for a slot are swapped and the 'auction' process is started.

warehouse-swap.fsm


warehouse-swap.fsm (79.2 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.