question

Ranggi M avatar image
0 Likes"
Ranggi M asked Ryan Clark commented

Models Run Slow

Good day!

I have a problem, with how my model runs really slow. I expect it because the amount of object , event (custom code in 3D), and how many token I used in the process flow also.

So in this thread, I want to ask, is there tips on how to make my models run faster after the models been made? I notice this thread https://archive.flexsim.com/threads/thread460.html is an old thread is still relevant? Because it is an old thread, I am afraid if I follow all of it , it wont do much

I made a mistake and already go far and done with how the models been build with so many custom code without process flow. But maybe I can get all the tips to make my models faster and still accurate?

For information, my models run rate now is 3 hours ++ for 30 minutes simulation. And, in task manager the CPU usage 10% (can flexsim use multi thread so can use more CPU Capacity?) and Memory usage 60%. In the running model, I already close the Model View, and Process flow.

Thank you!

Edited :
Side question, how can I check further for this situation :
I have conveyor with Input : 40, and Output : 40 but the current : 4. What is this 4? How can I investigate it? since visually there is no other item on the conveyor

FlexSim 19.2.4
time of simulationfaster
· 3
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

A single run of a FlexSim model (i.e. not an experiment or optimization run) is single threaded.

Review our FlexSim Answers article Recommended System Requirements for an in-depth discussion regarding the hardware components that make the most difference when building and running your simulation models.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

FlexSim 2020 Update 1 (April 10, 2020) introduced both a performance profiler and memory profiler.

I know you're on an older version of the software, but you could open your model in our latest version and try these tools. They may point out to you some places in your model that you could optimize for your computer's available resources.

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark commented ·

Hi @Ranggi M, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

Run a simulation without a 3D window and process flow window open.

Reduce Number of flowitems physically visible in a model. Make them virtually only present as data like in a label or table.
Reduce custom shape media data like large 3D shapes.

I let FlexSim run on slow CPU or old processor generation. Most important is memory. Don’t waste memory with unnecessary visual effects.

· 4
5 |100000

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

Ranggi M avatar image Ranggi M commented ·

1. Make them virtually only present as data like in a label or table. : For this one, wont it make the simulation's accuracy significantly decreased? Since the flow item is something traveled in the model?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Ranggi M commented ·
I mean you can reduce amount of items in a queue, storing the data in labels and on send create actually an item. In warehouse you can set items into a virtual state. Instead of transporting a filled pallet, you transport an item and create items only if you unpack the pallet.

Recycle items. Reuse them with an updated set of attributes. If a model can run with 1000 items instead of 100000 then FlexSim has got more memory available.

0 Likes 0 ·
Ranggi M avatar image Ranggi M Joerg Vogel commented ·

1. I mean you can reduce amount of items in a queue, storing the data in labels and on send create actually an item. <<< Yes I already did this for the most part of picking, but after picking when it need to wait in the queue for picking, I destroy all the item, and only let alone 1 flow item as container. Is this made the models much more heavy or light?
2. Recycle items. Reuse them with an updated set of attributes. If a model can run with 1000 items instead of 100000 then FlexSim has got more memory available. <<< My memory usage is only 60% of computer capacity, if I can reduce this will it help the simulation time? May I know with "Recycle" meaning, I dont put the item into "Sink" or "Destroy with Flow process chart" but keep them in the model all the time?

0 Likes 0 ·
Show more comments

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.