question

HUNGKUAN W avatar image
0 Likes"
HUNGKUAN W asked tannerp commented

How to let mutiple list acquire same resource

test.fsmI have three list , each acquire same resource , but only one can work , others just queue up .

And what If I allocate different resources to each list item , can I change the resouce content while simulation running ?
ex : station 1 has 3 car resources , station 2 have 1

today there's a tranport from 1 to 2 , then at the end , the task executer resource join station2 and there will be 2 resource remaining in station 1.

(update)

2018-07-11-1.png

2018-07-11-1.png
FlexSim 18.1.2
resource
2018-07-11.png (113.3 KiB)
2018-07-11-1.png (59.0 KiB)
test.fsm (61.4 KiB)
list-ver.fsm (49.7 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

tannerp avatar image
1 Like"
tannerp answered tannerp commented

Unfortunately, you can't manually change the number of resources while your model is running, but you can assign logic that will listen to other variables, such as an Array Size. Here's what that menu looks like:

I'm not sure that resources is the best option for what you're trying to keep track of, though. If you're keeping track of cars in your system, it might be better to treat the cars as flow items. Just a suggestion, though.


· 8
5 |100000

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

HUNGKUAN W avatar image HUNGKUAN W commented ·

I have taken the suggestion , but I don't know is it valid to use a flow item(car) to "transport"

another flow item(person) ?

and with the same setting , the token just stacked on some flow , but the othe didn't.

i have update the fsm file in the question . thanks

0 Likes 0 ·
tannerp avatar image tannerp HUNGKUAN W commented ·

I may have been misleading. Let me try and clarify.

Will you always have the same number of shared cars? If so, you could add them to a group and then reference the group in the resource. It would look like: Group("Shared Cars"). By doing this, only the cars available will be able to be acquired. If there aren't any available, no cars will be acquired.

Only if you want the number of cars to vary (i.e. cars are created and destroyed) would it make more sense to treat them like flow items.

0 Likes 0 ·
HUNGKUAN W avatar image HUNGKUAN W tannerp commented ·

That really helps! thanks!
so is it possible to change the group member while simulation running?

0 Likes 0 ·
Show more comments