question

Lucas Braga avatar image
0 Likes"
Lucas Braga asked Lucas Braga edited

Problems with the "By Percentage" parameter on processor

So... I have a processor (with a "by percentage" parameter) that should send 1/3 of the items to one Queue and 2/3 of the items to another Queue. At first, that happens, but when I run the model again, all items go to the same Queue. Can anyone help me?

See attached file.

FlexSim 7.5.4
process flowby percentage
618-test1.fsm (17.9 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

Michael Machado avatar image
1 Like"
Michael Machado answered Lucas Braga edited

Please, see the model attached. I just consider your percentages and increase the arrival rate. Also, considering the Arrival Style that you choosed "Arrival Schedule" I only added more number of arrivals to evaluate. Please, open the source's proprierties and see the changes made. It seems that the flow percentage is doing right now.


618-test1-byfb.fsm (20.1 KiB)
· 7
5 |100000

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

Lucas Braga avatar image Lucas Braga commented ·

It's working. Thanks. But, for example, in the first processor... the Output Port 1 is the Queue 7, and nº2 is Queue11. When the percentage system is: 1/3 to Port 1 and 2/3 to Port 2, the models runs the way it should, but these percentages are inverted. It doesn't make sense to me

0 Likes 0 ·
Michael Machado avatar image Michael Machado Lucas Braga commented ·

Lucas, veja a imagem. Ao executar o modelo por um tempo maior, você pode ver a quantidade de items que saíram do Processor 6 (54), sendo que aproximadamente 30% foram enviados para o Queue 7 (conectado a porta 1 do processor6), e o restante, aproximadamente 70% foram enviados ao Queue 11, conectado a porta 2 do Processor 6. A opção By Percentage nas picklists está dentro de Random (aleatório) de acordo com o percentual estipulado. Se olhar no código que está por trás desta picklist, verá que o percentual está oscilando de acordo com uma distribuição uniform, oscilando entre 0 e 100, respeitando as regras de envio de acordo com as portas. Veja abaixo, que por trás da picklist existe o comando declarando a semente geradora de números aleatórios e também a distribuição uniform. Apesar de existirem as picklists para facilitar a modelagem na aplicação da parte lógica, é interessante clicar no símbolo que lembra um pergaminho, que você verifica o que está escrito ou o que significam as picklists. Qualquer dúvida, estamos a disposição.

0 Likes 0 ·
modelo-teste.png (392.8 KiB)
teste2.png (26.3 KiB)
Michael Machado avatar image Michael Machado Michael Machado commented ·

Só para complementar a resposta acima. "De acordo com os % estipulados para envio das respectivas portas".

0 Likes 0 ·
Show more comments
Michael Machado avatar image Michael Machado commented ·

Lucas, please, provide me your e-mail and I will send a material on that, explaining with all details. Thanks,

0 Likes 0 ·
Lucas Braga avatar image Lucas Braga Michael Machado commented ·
0 Likes 0 ·