question

Jyhjeng D2 avatar image
0 Likes"
Jyhjeng D2 asked Jyhjeng D2 commented

3D timer with arrival time not at zero

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


FlexSim 23.0.4
3d timer with customer starting time not at 0
1681793257861.png (13.4 KiB)
第1題.fsm (44.0 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jyhjeng D2 commented

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.

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

Jyhjeng D2 avatar image Jyhjeng D2 commented ·

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 0 ·
問題1a.jpg (235.9 KiB)
問題1b.jpg (368.0 KiB)
Felix Möhlmann avatar image Felix Möhlmann Jyhjeng D2 commented ·
You have to add back the offset in the inter-arrival time field.
1 + current.row++

My mistake, sorry for that.

0 Likes 0 ·
Jyhjeng D2 avatar image Jyhjeng D2 Felix Möhlmann commented ·

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

問題2a.jpg


0 Likes 0 ·
問題2a.jpg (341.5 KiB)
Show more comments