question

WillRS avatar image
0 Likes"
WillRS asked WillRS commented

How to pull by priority changing by time?

Hello everyone!

In my model, I have 5 docks that have different occupancy windows for each type of item, depending on the time. There are 3 types of items.

For example, in the first hour of simulation, 3 docks should prioritize in ascending order (1, 2, and 3) and 2 docks in descending order (3, 2, and 1). In the second hour, the logic reverses: 3 docks should prioritize in descending order (3, 2, and 1) and two in ascending order.

In this example model, all items are arriving at the same time to test the logic, but in the real system there is a distribution of arrivals, according to a schedule.


Any idea how I can program this logic?

Thanks!

Priority_Change_by_time_Resource.fsm

FlexSim 23.2.0
processs flowacquire resourcesql queries
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

Gustavo Teodoro avatar image
0 Likes"
Gustavo Teodoro answered WillRS commented

For the item arrival using distribution, the best approach is use the process flow based on the block:
1730471401224.png

In the source, you can set an hourly distribution for item arrivals:
1730471477840.png

For the prioritization logic, I created a table listing the available docks and their prioritization based on time. The logic in process flow updates the dock prioritization every hour according to the set logic, alternating between the priorities in column 1 and column 2 of the GlobalTable1.
1730471578749.png

The model is attached.
priority-change-by-time-resource_Solution.fsm


· 1
5 |100000

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

WillRS avatar image WillRS commented ·

Thanks for the answer!

I liked the time control logic for each priority. I was imagining the need to use many lines of code... lol cool!

In this same modeling approach, how could I write SQL syntax so that the Docks would exclusively pull a certain type, instead of prioritizing it?

This would be a new scenario, where the docks would be dedicated to a certain item Type for a while and then switch

Thanks again!

0 Likes 0 ·