AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

question

Marian C avatar image
0 Likes"
Marian C asked Marian C commented

Port by case with a round robin distribution or percentage

Hello guys,

Is there a way that a Decision Point can divert same item type on 2 different ports by percentage or round robin ?

Thank you.port-by-case-percentage.jpg

port by case
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Marian C commented

Port by case option returns the port as a number, where the item goes. Since the return value must be a number you can replace the direct single vaule by functions returning different discrete numbers. The function dempirical("global table name", random number stream) is such a statistical function.

The global table first column contains in its rows the sum up to 100 percent, the second column in each row returns the discrete value to the probability of first column.

dempirical-port-by-case.fsm

The port number belongs to the outObject property in a decision point send item by case:

outobject(current,2)

The statistical dempirical distribution returns still the number the outObject is connected to in the option send item by case

outObject(current,dEmp) 

· 2
5 |100000

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

2.jpgHello Jorg,

I don't seem to get it. Instead of port numbers I have some DPoints connected. Can dempirical return their names ?

Thank you.

0 Likes 0 ·
2.jpg (774.2 KiB)

Sorry... here is the correct attachement. Thank you.

2.jpg

0 Likes 0 ·
2.jpg (569.5 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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