question

Tzu Hsuan C avatar image
0 Likes"
Tzu Hsuan C asked Eric M commented

Use 1 Source to create 2 types of boxes, and grab statistics separately?

Hi,

I would like to create Boxes and change their attribute. Following are my 2 examples:

1. Create 5 units Box A, item.Type = 1

Create 5 units Box B, item.Type = 2

2. Create 10 units Boxes, then I want 50% of them to be Box C, 50% Box D.

First question is: My setting in Source3 is: Set Label by Percentage > 50% value = 3 ; 50% value = 4.

I suppose Box C & D should then different in color, but they aren't.

Second question is: How can I grab the throughput of Box C and Box D separately? or I can only grab input of Sink3(sum of Box C + Box D)?

I tried to look for item.Type in Dashboard > Table > Options, but there only existSource.fsms Sources, Processors, Queues, Sinks.

Third question is what content means in FlexSim. Does it equal to WIP? As I can't find WIP in statistics.

Thank you!

FlexSim 20.2.3
flexsim 20.2.3source
source.png (53.9 KiB)
source.fsm (40.5 KiB)
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

·
José Antonio MD avatar image
0 Likes"
José Antonio MD answered Eric M commented

Hello @Tzu Hsuan C,

I will try to answer your questions:

1. You need to add a new trigger using the label of the item (Set Color By Case for example). You only add a label now, but not color (except A).

2. You should use Output By Type dashboard.

I hope I have been helpful.



· 5
5 |100000

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

Tzu Hsuan C avatar image Tzu Hsuan C commented ·

Thanks for your reply! Now I've solved my problems.

0 Likes 0 ·
Tzu Hsuan C avatar image Tzu Hsuan C commented ·

But I wonder in the case 50% value 3, 50% value 4,

why is the output still unbalance in throughput?


0 Likes 0 ·
1.png (128.1 KiB)
2.png (3.0 KiB)
Joerg Vogel avatar image Joerg Vogel Tzu Hsuan C commented ·

You have to differ between ratio and statistical distribution. You use a statistical distribution, then there is a deviation. There are systematical or random approaches to keep a ratio constant on a long run.

Examples are here

0 Likes 0 ·
Tzu Hsuan C avatar image Tzu Hsuan C Joerg Vogel commented ·

Hi, Jörg Vogel

May I ask how to keep a ratio constant?

When “Type” value

current.stats.output.value%2+1 

is 1, the Object would be red. What about “Type” value = 2?

I don't quite understand how to create 2 types of item by not using by Percentage.

Thank you!

Two types.fsm

0 Likes 0 ·
1.png (35.5 KiB)
two-types.fsm (33.7 KiB)
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.