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
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2016
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 159
Sung Kim is on a distinguished road
Default dempirical with random seed 100

Hi,


I found a weird results from "dempirical" command with random seed of 100. It seems it always returns the first outcome. I tested with other random seeds, and they seem work fine, though.
Attached is a screen capture I tested.
Anybody has the same experience?
Could you please test out the following script and let me know what you get? It could be just my machine???


I executed the command against a global table named "GlobalTable1". Two outcomes are defined as 1 and 2 with equal %, 50 an 50.
I tested it in FlexSim 7.5 and 7.7, and got the same results.


pd(dempirical("GlobalTable1", 100));pc(9);pd(dempirical("GlobalTable1", 10));pr();


Thank you for your checking.
Attached Thumbnails
Click image for larger version

Name:	FlexSimDempirical.PNG
Views:	292
Size:	38.9 KB
ID:	3160  
Reply With Quote
The Following User Says Thank You to Sung Kim For This Useful Post:
arunkrmahadeva (01-26-2016)
  #2  
Old 01-25-2016
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

"Although there are an unlimited number of random number streams available to the user, only the first one hundred streams numbered 0 through 99 have been initialized when the FlexSim application is opened. To create a new stream, simply execute the randinit() command for the new stream."

See the documentation for the randinit() command.
Reply With Quote
The Following 4 Users Say Thank You to Phil BoBo For This Useful Post:
arunkrmahadeva (01-26-2016), Jing Chen (01-25-2016), Sung Kim (01-25-2016), syseo (01-27-2016)
  #3  
Old 01-25-2016
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 159
Sung Kim is on a distinguished road
Default

Answer is CLEAR!!
THANKS.


( Embarrassed that I didn't know the fact yet even after using years of FlexSim.. )
Reply With Quote
  #4  
Old 01-25-2016
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

You can also set it in model settings where they're initialized at reset.
Attached Thumbnails
Click image for larger version

Name:	ModelSettings.PNG
Views:	266
Size:	8.8 KB
ID:	3161  
Reply With Quote
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post:
arunkrmahadeva (01-26-2016), Sebastian Hemmann (01-26-2016), Sung Kim (01-25-2016)
Reply

Tags
dempirical, random seed

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dempirical Issue frankwolfe Q&A 2 02-01-2014 07:32 PM
repeat random streams Sebastian Hemmann FlexSim HC: Q&A 2 10-10-2013 11:25 PM
random tasks emrecakmak Q&A 1 09-27-2010 02:00 AM
More random random number Paul Dowling Q&A 6 06-01-2008 07:30 PM
Explanation of empirical, cempirical and dempirical distributions Cliff King Q&A 0 01-04-2008 12:12 PM


All times are GMT -6. The time now is 06:42 PM.


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