question

anon-user avatar image
0 Likes"
anon-user asked Jason Lightfoot commented

Calculation time when referencing the global table

I'm going to set the processor processing time.


I want to read the processing time by referring to the global table instead of inputting the processing time directly to the processor.

How much does FlexSim's calculation time worsen when I refer to a global table like this?


Since we plan to use a large number of objects, we want to keep the deterioration of calculation time small.

FlexSim 21.0.5
global table
· 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.

Eric M avatar image Eric M commented ·

Hi anonymous user, was Jason Lightfoot'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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented

Returning a numeric literal will be faster than looking up a table value. You can test this easily in a script window by running the nodefunction thousands of times and comparing the result.

If you're concerned about speed to could try creating a Map of process times and use that instead, or use a table with an index.

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

anon-user avatar image anon-user commented ·

Please tell me more.


Does a "numeric literal" mean double-clicking on a 3D object and entering the process time in its properties?


How do I create "a Map of process times" and "table with an index"?

Are these different from global tables?


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ anon-user commented ·
Right - if you directly enter '10' so that's the value used it will be the fastest.


A Map can be on a label of an object or it can be a global variable. It can be keyed by anything - so an object, product type or an array that combines the two. In the past I've done this at reset.


0 Likes 0 ·