question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Patrick Cloutier commented

Why does Round Robin not work in this simple case?

In the attached example, why doesn't Queue3 pull in round robin?

All I did was chose Input-Pull-RoundRobin on Queue3 and it doesn't work.

I know I could make it work with ProcessFlow but shouldn't the standard menu option work in this simple case?

RoundRobinPull.fsm

FlexSim 24.0.1
round robinpullrequirement
roundrobinpull.fsm (30.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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Patrick Cloutier commented

This is a timing issue in that everything is happening at time zero.

If you add this code to Queue3's reset it will work correctly:

closeinput(current);
createevent(current,0.00001,EVENT_USEROPENINPUT);
· 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.

Patrick Cloutier avatar image Patrick Cloutier commented ·
This works. Thanks. I see that I can instead just make the products arrive later than 0 in the Sources.

Or if I had other steps between the Sources and Queue3, it would also work because not everything would happen at the same time at time 0.

Thanks Jason,

0 Likes 0 ·

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.