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 07-15-2012
zhang xin zhang xin is offline
Flexsim User
 
Join Date: Dec 2008
Location: China
Posts: 136
Downloads: 147
Uploads: 0
Thanks: 81
Thanked 6 Times in 6 Posts
Rep Power: 150
zhang xin is on a distinguished road
Default about stop time and statistic

Hi, in the attached is a very simple model to test statistic.

I set stop time to 4, but the model stop at time 3. I think maybe it is because there's no event after 3. But I want to compute the average queue length based on run time 4. The queue's statistic and the recorder's statistic are based on run time 3. How to resolve this problem?

I tried to put another source into the model and let it generate an item at time 4, then the recorder can give correct average queue length but the queue still cannot. Is there a better solution?
Attached Files
File Type: fsm inventory.fsm (29.4 KB, 113 views)
  #2  
Old 07-15-2012
zhang xin zhang xin is offline
Flexsim User
 
Join Date: Dec 2008
Location: China
Posts: 136
Downloads: 147
Uploads: 0
Thanks: 81
Thanked 6 Times in 6 Posts
Rep Power: 150
zhang xin is on a distinguished road
Default

I tested the flexsim model, and find that eventhough you set the stop time in the experimenter, the model may stop before that time because there is no event left.

But in my model, some performance metrics are based on stop time, for example, queue average length. Can someone help me resolve this problem?

thanks
  #3  
Old 07-16-2012
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Hello,

create a user event at runtime 4. The code can be anything ,e.g. print the current time in the output console.

The function is in Tools > User Events

Jörg
The Following User Says Thank You to Jörg Vogel For This Useful Post:
Paulo Lopes (02-02-2015)
  #4  
Old 07-16-2012
zhang xin zhang xin is offline
Flexsim User
 
Join Date: Dec 2008
Location: China
Posts: 136
Downloads: 147
Uploads: 0
Thanks: 81
Thanked 6 Times in 6 Posts
Rep Power: 150
zhang xin is on a distinguished road
Default

Quote:
Originally Posted by Jörg Vogel View Post
Hello,

create a user event at runtime 4. The code can be anything ,e.g. print the current time in the output console.

The function is in Tools > User Events

Jörg
Dear Jorg, thank you. But the queue still cannot report correct average queue length. Correct value should be 2.5, while it reports 2 based on run time 4.
  #5  
Old 07-16-2012
Carsten Seehafer's Avatar
Carsten Seehafer Carsten Seehafer is offline
FlexSim Geek
 
Join Date: Oct 2008
Location: Ritterhude, Deutschland
Posts: 230
Downloads: 45
Uploads: 1
Thanks: 474
Thanked 320 Times in 143 Posts
Rep Power: 379
Carsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud of
Default

The stats updates only if an item enters over leaves the object (p.e.: You can see this if you take a look into the stats "State" of a processor during simulation.)

If you want to update the stats at a specific moment, you can add "updatestates()" in your user event. This command is also called if you push the stop button.

Greetings

Carsten
The Following User Says Thank You to Carsten Seehafer For This Useful Post:
domcylai (08-22-2012)
  #6  
Old 07-17-2012
zhang xin zhang xin is offline
Flexsim User
 
Join Date: Dec 2008
Location: China
Posts: 136
Downloads: 147
Uploads: 0
Thanks: 81
Thanked 6 Times in 6 Posts
Rep Power: 150
zhang xin is on a distinguished road
Default

Dear, Carsten, Thank for your help.
I build a user event to update stats, but the queue object still cannot report correct avg length, the record can report correct value. I am confused.
Please see the attachment. Please set the stop time to 4.01.
Attached Files
File Type: fsm inventory.fsm (29.2 KB, 92 views)
  #7  
Old 07-31-2012
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

The objects update their content stats when items enter or leave.

For 6.0.2, we have added functionality so that content stats are also updated when you stop the model or call updatestates().

We plan to release 6.0.2 tomorrow if all goes well. We're doing some final testing on the install before we release.
The Following 2 Users Say Thank You to Phil BoBo For This Useful Post:
zhang xin (08-03-2012)


Thread Thread Starter Forum Replies Last Post
Stop and resume objects at specified time john mic Q&A 6 11-02-2010 01:48 AM
statistic mariogib Q&A 10 03-16-2009 03:43 PM
Export of statistic data from Experimenter Matthias Hofmann Q&A 1 11-04-2008 09:05 AM
Make sure you stop model with the stop button before collecting state based statistics Paul Dowling Tips and Tricks 2 06-10-2008 08:10 AM
How to run tasks after stop time? Fadhlullah Bin Rahmat Q&A 1 02-26-2008 04:44 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.