question

Abdelrahman Mahmoud S avatar image
0 Likes"
Abdelrahman Mahmoud S asked Joerg Vogel edited

Stopping a certain item type from exiting the source at a certain time?

Hello,

The title says it all, I am trying to stop a certain item type to get created from the source at a certain time in the simulation.

Thank you.

FlexSim 20.1.0
sourcesource control
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 Joerg Vogel edited

You can assign the type directly by a statistical discrete function or indirectly with the help of an array of allowed types.

directly value for label Type in source code

return duniform(1,3,getstream(current)); 

indirectly with an array

Array myTypes = [1,2,4];
return  myTypes[duniform(1,myTypes.length,getstream(current)];

Depending on run time you exchange the array i.e. by a label value at the source.

5 |100000

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

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.