question

Jingyong P avatar image
0 Likes"
Jingyong P asked Jingyong P commented

Numerous number of tokens slow down computer. Looking for better solution

Hello, Thanks for reading my post.

I am using Flexsim to simulate a very high volume manufacturing environment.

Here is the model situation I want to improve.

Each material load can be used for 10000 units production. (I will have many similar processes in my real model. ) when model runs, the material loading process will create huge number of tokens and push to different list for future processing. It significantly slows down the computer.

Is there better way to simulate this type of process? I attached a simplified model.

Thank you

Example_Material_Load.fsm

FlexSim 21.0.2
flexsim 21.0.2saved statemany tokens
· 2
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Can I ask how slow it's getting? On my PC it simulates about 2 days per realtime second and the memory increases from 700MB idle to 730MB running - hardly a strain.

1 Like 1 ·
Jingyong P avatar image Jingyong P Jason Lightfoot ♦ commented ·

it will slow down the model by a lot. This is just one example. I will have 20+ similar processes in the model. When I run the full model, the model get frozen and take 1 minutes to back normal. It take 1-2 minutes to reset.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jason Lightfoot commented

You push tokens to your list. But you need only a value, that you use to identify your entries. Sometimes this value has got attributes you want to evaluate as fields. When you choose as an entry value that is not anymore a reference to an object storing those attributes, you can push field values to your entry by push arguments. Then the list stores data without any connections to existing tokens or flow items. But you can still evaluate the list.

Push Argument at the fields tab.

· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

You need to use the listPush command (probably in a custom code activity) to use PushArguments.

If you only need one value on the list then you can push that using the Push to List activity and use a wait timeout of zero and check "keep on list on early release" for the token to continue and be destroyed.
1 Like 1 ·

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.