Hi there,
for now I stopped researching about subscripts and devoted the basic modeling of my model.
FOr this purpose I advised out IT team to update my Vensim Version to the newest one, but now I am recieving error messages from one random function, maybe one of you knows the reason:
"Range or Parameters to random function inconsistent computing"
I am using a random normal function over there (the only random...function in my model so far) which is:
random normal(0,2*x_bar,x_bar,stdev,0)
where "x_bar" is the mean value and "stdev" is the standard deviation.
Does anybody know the reason for this error message?
Best regards from germany.
Mattes
After update to 5.10 c error msg for random function
-
- Super Administrator
- Posts: 4844
- Joined: Wed Mar 05, 2003 3:10 am
Hello!
x_bar = 275 + step(80,100)
Stdev = 275
Could it be, that the random function gets values (e.g. -10 or 1000), which are out of the bounds of the lower and upper limits?
This sounds logical for me.
Then the solution yould be to either decrease/increase the bounds or adjust the standard deviation.
Or is there another possibility?
I mean if the function just takes the bounds in cases where the random value is out of the range, it could be possible that the mean value, which was set, is not the mean value of the data set given by the random function
(e.g. imagine random normal(0,10,8,5,0) In this case the mean of "8" couldn't be reached if the function just takes the bounds in cases the random function calculates for example values of 11,12 and so on).
x_bar = 275 + step(80,100)
Stdev = 275
Could it be, that the random function gets values (e.g. -10 or 1000), which are out of the bounds of the lower and upper limits?
This sounds logical for me.
Then the solution yould be to either decrease/increase the bounds or adjust the standard deviation.
Or is there another possibility?
I mean if the function just takes the bounds in cases where the random value is out of the range, it could be possible that the mean value, which was set, is not the mean value of the data set given by the random function
(e.g. imagine random normal(0,10,8,5,0) In this case the mean of "8" couldn't be reached if the function just takes the bounds in cases the random function calculates for example values of 11,12 and so on).
There were some changes to RANDOM functions in the recent releases - see the release notes. The issue may be that your truncation of the distribution is significant enough to make it unlikely that a draw from the untruncated distribution lies in the truncated range, though on the surface that doesn't appear like it would be a problem.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm