question

Miguel Pereira avatar image
0 Likes"
Miguel Pereira asked Miguel Pereira commented

Statistic Distribution

Hello,


Is there a specific statistic distribution where i can say this:

I have 100 box created in a Queue but i want 5% of them to be a priority.

Is it possible?


Thanks, Miguel Pereira.

FlexSim 21.1.5
processflowdistributionsstatistical distributionflexsim 21.1.5
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

José Antonio MD avatar image
0 Likes"
José Antonio MD answered Miguel Pereira commented

Hello @Miguel Pereira,

You have "By Percentage" option in FlexSim. You can create a label with this property and then select items using this label.

I hope I have been helpful.

· 3
5 |100000

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

Miguel Pereira avatar image Miguel Pereira commented ·

Do you remember my project of the airport?

I've put it in "Fluxo dos Aviões" but later i'll put it also on the "fluxo dos AGV"

Seguido_1.fsm

i want it to create some priority bags and they have to be first to be unloaded, but i'm having a trouble where to put this label. What value should i put?


Take a look, i want it to be red only. I was changing sizes just to be even more clear which ones are the priority.

0 Likes 0 ·
seguido-1.fsm (2.5 MiB)
Felix Möhlmann avatar image Felix Möhlmann Miguel Pereira commented ·

1. Add the label (Prio: 0 or 1) to the items before they are pushed to the list. Either directly after creating them or just before pushing to the list. I chose the second option.

1629716146336.png

(You can also use a "Decide" to color the priority bags red, but using the custom code has a smaller footprint in the process flow.)

2. Add "Prio" as a label to the lists the items are pushed to. This is necessar for the label being available for querying when you pull items from the list.

1629716254445.png

3. In the "Pull from List" activities, where you pull the bags, add "ORDER BY Prio DESC" into the Query field. This will cause the items to be ordered by the Prio label in descending order. (Ascending order would be ASC) (You could also query for a specific value with "WHERE Prio = <value>" to only pull items with that label value; not useful here, but might be useful in future)

1629716400138.png


The AGVs should now load the bags marked with Prio 1 before the others.

1629716682620.png

Note 1: I had to replace the item shape with the basic box, as I do not have access to the custom shape you are using.

Note 2: At the queue "BagagensDePartida" it will appear as if the TE ignore some priority items. This is due to the tokens already waiting in the pull activity when the items are created. This leads to them taking the first 10 items that are added, as they are not waiting for the rest being created.

seguido-1_1.fsm

0 Likes 0 ·
1629716146336.png (19.0 KiB)
1629716254445.png (15.3 KiB)
1629716400138.png (22.8 KiB)
1629716682620.png (27.7 KiB)
seguido-1-1.fsm (876.3 KiB)
Miguel Pereira avatar image Miguel Pereira Felix Möhlmann commented ·

Hi @Felix Möhlmann.

Just wow and it's okay at the queue "BagagensDePartida" because i'm focus on the bags that come, when they leave to the plane it's okay if they're not first. The main focus on this project is to make the 1st class people receive their bags first when they leave the plane. Mega thanks!

0 Likes 0 ·