question

Luis Fernando avatar image
0 Likes"
Luis Fernando asked Luis Fernando commented

Set a label with a value selected from a global table by a stat. distribution

Hi FlexSim team,

Could you please help me to create objects and assign a label called "model" but with a value selected by a statistical distribution from a global table?

Create objects with a label selected by a statistical distribution from a Global Table.fsm

Example: Having the following Global Table and we want to assign a label called "Model" to an object with a value that are on the table below but selecting it randomly or by a statistical distribution .

Models
A
B
C
D


1668632261434.png

Thank you in advance,

Luis

FlexSim 22.2.3
assign labelsstatistical distributionsources
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

·
Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas answered Luis Fernando commented

@Luis Fernando ,

In order to build the logic you want, I used the expression below

1668633425416.png

I recommend you to read this part of the user manual to understand better how to use FlexScript to get values from a Global Table.

create-objects-with-a-label-selected-by-a-statisti-sc.fsm


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

Luis Fernando avatar image Luis Fernando commented ·
Thank you for your help!
0 Likes 0 ·

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.