question

Haneen A avatar image
0 Likes"
Haneen A asked Jason Lightfoot edited

Calculating staytime using zones

hello,

we are trying to calculate the delivery time for each luggage group, each group is defined by the luggage cluster. we want the time to start when the first luggage of each group enters the model and ends when the last luggage of each group is pulled off of the conveyor.

As shown in the picture the group number should have only the groups (1,2,3) and to have only one row for each group. Finally the total time for each of these groups

what would you recommend us to do dear Mr. @jason.lightfoot ?

thank you

Finaal.fsm

FlexSim 20.2.0
processflowdashboardsflexsim 20.2.0zonestaytime
capture.png (24.2 KiB)
finaal.fsm (4.5 MiB)
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

I tried increasing the passenger numbers to get a decent amount of data to test - what's the maximum per flight that will still work with this data?

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

In a calculated table you can set this up easily by using this SQL:

SELECT
    [Group Number], AVG([Time]) AS [AverageDeliveryTime], MIN([Time]) AS [min] , MAX([Time]) AS [max], SUM([Time]) AS [Total], Count(*) AS [Qty]
FROM [TotalPassengerWaitTimes] GROUP BY [Group Number]



1614006559075.png (17.5 KiB)
1614006949060.png (19.0 KiB)
· 8
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
1 Like 1 ·
finaal-jl.fsm (4.5 MiB)
Haneen A avatar image Haneen A Jason Lightfoot ♦♦ commented ·

hello dear jason,

as you can see everything is working properly after your suggestion, but for the (delivery time) there's a problem with the starting time. It should start when the first bag from each group enters the model no matter how the same group is distributed among the conveyors,


Capture.PNG

finaal-jl.fsm

0 Likes 0 ·
capture.png (54.1 KiB)
finaal-jl.fsm (4.5 MiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Haneen A commented ·

I thought the group was the number of bags a person has, not the flight. The delivery time is then the time from the first person's bag entering the conveyor to the time they collect their last one, no?

If you say it's the first bag of any passenger who has 3 bags, then when do you stop the time for delivery? It will never stop because there will continue to be people with 3 bags arriving. I must have misunderstood.

1 Like 1 ·
Show more comments