ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 01-24-2008
qin tian qin tian is offline
Flexsim User
 
Join Date: Dec 2007
Location: Shanghai, China
Posts: 137
Downloads: 115
Uploads: 0
Thanks: 59
Thanked 3 Times in 3 Posts
Rep Power: 161
qin tian is on a distinguished road
Default How to get interval average,max,etc of a queue content ?

I want to get the interval average,max,etc of a queue content ?
An interval is 3600 seconds and I have 3 interval.

I use Recorder and check the interval. But it only give one data(I don't know if it is one interval data), not three interval data.

I hope someone here give a solution.
I need it urgently.

Thanks.

Sorry for my english.
  #2  
Old 01-25-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Qin Tian,

I built a small model called Sample_IntervalQueueResults_TD and can be found in the Downloads Section under User Concept Models.

I hope that this model gives you some hints and help.

Good success.
tom the (A)tom
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
  #3  
Old 01-26-2008
qin tian qin tian is offline
Flexsim User
 
Join Date: Dec 2007
Location: Shanghai, China
Posts: 137
Downloads: 115
Uploads: 0
Thanks: 59
Thanked 3 Times in 3 Posts
Rep Power: 161
qin tian is on a distinguished road
Default

Thanks, David. But I think the second interval' avg and max isn't correct in your model. They should be calculated using only data in that interval.

I think we should clear statistic data of queue at the begining of every user event, but I don't know how to do it.
  #4  
Old 01-27-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Qin Tian,

There is a command called resetstats() which resets the statistics of the whole model. I am not sure if this will solve your problem, because all models statistics will be reset. I guess this is not the way to go, but could be a quick solution.

So I guess what need to be done is to collect the statistics in the interval in an extra Global Table (IntervalResults) with an extra User Event (CollectIntervalData). One question is which event time and repeat time to use. A short time will collect a lot of data but will be more precise. Anyway, on the User Event CollectIntervalData it’s necessary to calculate the results from the Table IntervalResults. After collecting the results and write them in the GobalTable QueueResults reset the IntervalResults Table and set the pointer to the row to 1 again.
So now it starts to collect the results for the next interval.
I think that’s the way to go.

Unfortunately I do not have time to modify my model in the moment and I am not sure when I will find time to do it. Maybe you can try to build this in by yourself and if you have questions you can ask again or post the state of you model and the Community can have a look into it.

Good success.
tom the (A)tom
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
  #5  
Old 02-12-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Qin Tian,

As said in another thread, I took the time to implement the above described stuff.

So I uploaded the model “Sample_IntervalQueueResults_TD.fsm” again with these changes. The model can be found in the Download section under User Concept Models.

I hope this model does what you expect. If you have any further questions or need some more hints, please let me know.

Good success.
tom the (A)tom

P.S.: Because I use Flexsim v4.30 now, this model is a v4.30 model.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
  #6  
Old 02-14-2008
qin tian qin tian is offline
Flexsim User
 
Join Date: Dec 2007
Location: Shanghai, China
Posts: 137
Downloads: 115
Uploads: 0
Thanks: 59
Thanked 3 Times in 3 Posts
Rep Power: 161
qin tian is on a distinguished road
Default

Tom, thanks for your help.

Now, I upload my solution. But it have many chinese character. That's another reason I didn't upload it before.



But I still think the function should be implemented in the Recorder.
Because if you have many data to calculate, do it like this need too many time.
Attached Files
File Type: zip model3(2)-2.zip (179.1 KB, 407 views)


Thread Thread Starter Forum Replies Last Post
a question on queue KelvinHo Q&A 15 11-09-2011 07:16 AM
Queue Sorting Jeff Nordgren Q&A 12 05-22-2008 03:21 PM
Does there exist a function that can calculate the time weighted average of a value in a Global tabl qin tian Q&A 4 01-20-2008 07:01 PM
Queue stacking Paul Dowling Q&A 2 11-27-2007 11:57 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.