Announcements

Community notifications may experience intermittent interruptions between 10–12 November during scheduled maintenance. We appreciate your patience.

How to pull by priority changing by time?

How to pull by priority changing by time?

willrs
Not applicable
145 Views
2 Replies
Message 1 of 3

How to pull by priority changing by time?

willrs
Not applicable

[ FlexSim 23.2.0 ]

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

0 Likes
Accepted solutions (1)
146 Views
2 Replies
Replies (2)
Message 2 of 3

gustavo_teodoroD8NVF
Advocate
Advocate
Accepted solution

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

0 Likes
Message 3 of 3

willrs
Not applicable

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