question

john flory avatar image
0 Likes"
john flory asked Jordan Johnson commented

Determine number of available resources

If I want a "decide" block to route a token based on the number of a resource available, what is the command to get the number of a current resource available?

FlexSim 18.1.2
resource
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

·
Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered

Use the getstat() command:

getstat(resource, "ResourceAvailable", STAT_CURRENT, current)

Here is an example model, that uses a decide:

getresourceavailable.fsm


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.