question

james avatar image
0 Likes"
james asked james commented

how to let my bag source's and customer source's type be the same? pls help me!!

有什麼方法可以讓bag source的type和customer source的type可以配對到?(像最下面的圖一個的type是1另一個是7)

不要用processflow的話

1684935678099.png1684935662403.png1684935640421.png1684935574689.png


FlexSim 20.1.3
process flowsourcetype
1684935574689.png (90.0 KiB)
1684935662403.png (32.3 KiB)
1684935678099.png (32.7 KiB)
1684936286714.png (147.8 KiB)
· 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.

Carter Walch avatar image Carter Walch commented ·

Hi @james,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
james avatar image james Carter Walch commented ·

because the file is too big, so i use google drive to let you look at my model

https://drive.google.com/file/d/1BXUWUmQuKWuBRUg9VcaByAXdhLFdzRHu/view?usp=share_link


0 Likes 0 ·

1 Answer

Carter Walch avatar image
0 Likes"
Carter Walch answered james commented

Hi @james ,

linktypes.fsm

Due to the nature of FlexSim's random stream, two sources with the same distribution of type labels will still yield different results. However, there are still a couple of ways to accomplish what you want.

By using process flow, we can use tokens to create objects that have the same label. In example 1, the source1 in the 3D model is making flow items and assigning their type duniform(1,20,getstream(current))
The process flow then creates new flow items in queue2 that have the same label as the items created by Source1.

1684948129136.png

1684948085810.png

Example 2 starts by making tokens in the process flow and assigning their type (same distribution as above) and then splits the tokens and has two create object activities. This lets us make different objects that have the same Type label because we already assigned them.

1684948007955.png


If you want to perform everything in the 3D model, look at example 3 and 4 in the attached model. You can create a flow item from a source and use a separator with the split method. This allows us to create identical objects with the same Type label.

1684947381792.png

In example 4 I also used a trigger on entry in the queue to change the 3D object to be a man. Notice how the man and the box flow items have the same Type.

1684947266295.png1684947285981.png

Hopefully this helps!


1684947266295.png (90.4 KiB)
1684947285981.png (181.3 KiB)
1684947381792.png (460.4 KiB)
1684948007955.png (636.8 KiB)
1684948085810.png (440.6 KiB)
1684948129136.png (40.8 KiB)
linktypes.fsm (44.2 KiB)
· 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.

james avatar image james commented ·

thank you, i'll try it!!

1 Like 1 ·
james avatar image james commented ·
Can I ask you how to set up separator in example 3?

can you show me your screen shot plz?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ james commented ·

The model is uploaded so you can see for yourself it's just this:

1685448849249.png

As a sudent we'd encourage you to do the tutorials and consult the documentation - in this case for the Seperator.

1 Like 1 ·
1685448849249.png (4.4 KiB)
james avatar image james Jason Lightfoot ♦♦ commented ·
thanks!!!
1 Like 1 ·