3D timer with arrival time not at zero

3D timer with arrival time not at zero

jyhjeng_d2
Not applicable
72 Views
6 Replies
Message 1 of 7

3D timer with arrival time not at zero

jyhjeng_d2
Not applicable

[ FlexSim 23.0.4 ]

Hi:

I have a simple queue with two possible outcome. The customer could leave the system after waiting for 3 s in the queue. Before I use a program from Felix and it works for case when the arrival time starting at 0 s. However, when I uncheck the starting at zero box, the result does not seem right.

The program produced System Content Vs Time as follow.

system-content-vs-time.png


But the correct one should be

1681793257861.png

How do I coorect the program to get the right answer?

The program is attached. 第1題.fsm


0 Likes
Accepted solutions (1)
73 Views
6 Replies
Replies (6)
Message 2 of 7

moehlmann_fe
Advocate
Advocate
Accepted solution

What you believe to be wrong relates to the logic @Jason Lightfoot provided you here.

With Arrival at time 0 being set in the source, the inter-arrival time will be evaluated for the first time after the first item was created. Without, it is of course evaluated before since it dictates the arrival time.

Since you increment the row label in it, it will have a value of 2 when the first item is created, resulting in the first process time value being skipped.

Either set the reset value for the label to 0 or increment the value in the On Creation trigger after assigning the item label instead of doing it in the inter-arrival time field.

0 Likes
Message 3 of 7

jyhjeng_d2
Not applicable

Hi:

I tried to reset value of the label to 0, but to no avail. The following is the setting.

問題1a.jpg

The result is as follows.

問題1b.jpg

There is an error in console. Anything is missing in my correction?

0 Likes
Message 4 of 7

moehlmann_fe
Advocate
Advocate
You have to add back the offset in the inter-arrival time field.
1 + current.row++

My mistake, sorry for that.

0 Likes
Message 5 of 7

jyhjeng_d2
Not applicable

It did not work either. The result is wrong as shown below.

問題2a.jpg


0 Likes
Message 6 of 7

moehlmann_fe
Advocate
Advocate

WIth those changes (deactivating arrival at time 0, reset value of 0 and adjusting the inter-arrival time as shown) I'm getting this result:

capture1.png

1 (1).fsm

0 Likes
Message 7 of 7

jyhjeng_d2
Not applicable

Yes, you are right. I just remembered that I had to combine the two conditions in my previous program. If I put the two to work together, it works.

0 Likes