query regarding errors in model

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
query regarding errors in model
hello,
i have made the model for water demand estimation. i am some errors like floating point errors. what is floating point error? how to fix it?
anybody can help me? here am attaching the model.
i have made the model for water demand estimation. i am some errors like floating point errors. what is floating point error? how to fix it?
anybody can help me? here am attaching the model.
 Attachments

 COMPLETEH.mdl
 (27.59 KiB) Downloaded 28 times

 Super Administrator
 Posts: 2782
 Joined: Wed Mar 05, 2003 3:10 am
Re: query regarding errors in model
Start with the population and get that working properly first.
You've got an error in the equation for "population". It should be "INTEG ( births deaths), but you're adding the population in each time step as well. This is shown by the units error.
Then the birth rate is a little strange as well. It's 2.4 people per year, per member of the population. That seems very high to me. Same issue with the death rate.
I think if you fix all the unit errors, things might start to work for you.
You've got an error in the equation for "population". It should be "INTEG ( births deaths), but you're adding the population in each time step as well. This is shown by the units error.
Then the birth rate is a little strange as well. It's 2.4 people per year, per member of the population. That seems very high to me. Same issue with the death rate.
I think if you fix all the unit errors, things might start to work for you.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
Hello,
i have tried out with the solution on which you advised. it has corrected over the population alone. it shows the floating point error in rainwater consumption rate(rainwater  RW). how to fix it? anybody can help me to arrive the solution for total demand?
i hope your suggestion will be helpful to achieve the expecting demand.
i thank you in advance
gokila vani
i have tried out with the solution on which you advised. it has corrected over the population alone. it shows the floating point error in rainwater consumption rate(rainwater  RW). how to fix it? anybody can help me to arrive the solution for total demand?
i hope your suggestion will be helpful to achieve the expecting demand.
i thank you in advance
gokila vani

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
Hello,
i have posted my model. can anybody check the equations which i have given in model?
if you find any mistakes then please help me to correct that.
thanks in advance
gokila vani
i have posted my model. can anybody check the equations which i have given in model?
if you find any mistakes then please help me to correct that.
thanks in advance
gokila vani

 Super Administrator
 Posts: 2782
 Joined: Wed Mar 05, 2003 3:10 am
Re: query regarding errors in model
Can you upload the model with the corrected population calculations?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
hello,
here am uploading the corrected population model. But still am getting error in rainwater consumption rate. could you please the correct errors in model? and can u help to arrive the actual demand?
Thank you in advance sir.
gokila vani
here am uploading the corrected population model. But still am getting error in rainwater consumption rate. could you please the correct errors in model? and can u help to arrive the actual demand?
Thank you in advance sir.
gokila vani
 Attachments

 population.mdl
 (1.96 KiB) Downloaded 22 times

 WD.mdl
 (13.41 KiB) Downloaded 28 times

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
hello,
here am uploading the corrected population model. But still am getting error in rainwater consumption rate. could you please the correct errors in model? and can u help to arrive the actual demand?
Thank you in advance sir.
gokila vani
here am uploading the corrected population model. But still am getting error in rainwater consumption rate. could you please the correct errors in model? and can u help to arrive the actual demand?
Thank you in advance sir.
gokila vani

 Super Administrator
 Posts: 2782
 Joined: Wed Mar 05, 2003 3:10 am
Re: query regarding errors in model
I don't think the population part of the WD model is correct. The population rate is "1", so for each member of the population (both male and female), they will have one child per year.
Total HH demand should also not be a level.
HH with basic supply is also wrong, you are adding in "HH with basic supply" each time step. The equation should be "netgrwth of HH with BSconnection".
"netgrwth of HH with BS" probably should not go negative.
Have a go at fixing all the unit errors, these clearly show where things are wrong. Also look at the tabular values for population and go forward from there.
Total HH demand should also not be a level.
HH with basic supply is also wrong, you are adding in "HH with basic supply" each time step. The equation should be "netgrwth of HH with BSconnection".
"netgrwth of HH with BS" probably should not go negative.
Have a go at fixing all the unit errors, these clearly show where things are wrong. Also look at the tabular values for population and go forward from there.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
Hello,
Yes , i have checked over that model. i am getting negative values for HH with basic supply for future years. and why am not able to forecast for 30 years? it shows only for 7 years. Sir, please i request to correct all the errors occurs in the model. i have tried many times. i am not able to correct all the errors in model.
Thank you in advance
Yes , i have checked over that model. i am getting negative values for HH with basic supply for future years. and why am not able to forecast for 30 years? it shows only for 7 years. Sir, please i request to correct all the errors occurs in the model. i have tried many times. i am not able to correct all the errors in model.
Thank you in advance
 Attachments

 WDM.mdl
 (13.56 KiB) Downloaded 26 times

 Super Administrator
 Posts: 2782
 Joined: Wed Mar 05, 2003 3:10 am
Re: query regarding errors in model
I cannot correct the errors, I don't even know what the model is supposed to be showing (or any of the terminology). For example, I assume HH is households, but it's just a guess.
The population goes from 1.4M to 2.8M in 7 years, is this correct?
This leads on to "total no of HH". This in turn is used to calculate "total no of informal HH". This goes negative at time = 3. Is the equation for that parameter correct?
I'm sure if you start with the population and follow it forwards (as I have done), you'll find the errors. The units check highlights all of them.
The population goes from 1.4M to 2.8M in 7 years, is this correct?
This leads on to "total no of HH". This in turn is used to calculate "total no of informal HH". This goes negative at time = 3. Is the equation for that parameter correct?
I'm sure if you start with the population and follow it forwards (as I have done), you'll find the errors. The units check highlights all of them.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
Hello,
The expansion for HH is household only which you assumed correctly. This model has been made to find the water demand for the year of 2040. i have prioritized the factors then i formed the model. The base year data i have taken is 2011. i have done the population estimation using some other manual methods. For 7 years ,the answer arrived using this vensim is almost correct. like wise, i need to forecast the water demand for 2040. The equation i have given for total no of HH is correct. but it gives negative answer from 3rd year.. The objective of the water demand model, i have mentioned in the above points. I hope,this will be helpful to solve the errors. If you can correct the errors in model then please correct it and send me to my mail id. gokila.1086@gmail.com
The expansion for HH is household only which you assumed correctly. This model has been made to find the water demand for the year of 2040. i have prioritized the factors then i formed the model. The base year data i have taken is 2011. i have done the population estimation using some other manual methods. For 7 years ,the answer arrived using this vensim is almost correct. like wise, i need to forecast the water demand for 2040. The equation i have given for total no of HH is correct. but it gives negative answer from 3rd year.. The objective of the water demand model, i have mentioned in the above points. I hope,this will be helpful to solve the errors. If you can correct the errors in model then please correct it and send me to my mail id. gokila.1086@gmail.com
 Attachments

 WDM.mdl
 (13.56 KiB) Downloaded 24 times

 Super Administrator
 Posts: 2782
 Joined: Wed Mar 05, 2003 3:10 am
Re: query regarding errors in model
What about "total no of informal HH"? As I mentioned in the last post, this goes negative at time = 3. Is the equation for that parameter correct? As I said, I'm just guessing that there is an error here, I have no knowledge of this industry/area.
You need to spend some time looking a the numbers from here and see if they make sense. If not, correct and then move onto the next part of the model (the error for "total no of informal HH" leads on to "HH with basic supply").
You need to spend some time looking a the numbers from here and see if they make sense. If not, correct and then move onto the next part of the model (the error for "total no of informal HH" leads on to "HH with basic supply").
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
Hello,
i have one more issue. i have cleared the errors as much as possible. i have some errors regarding the function used INTEG in equation. if possible ,clarify this error. and i have tried to do simulation like floating point error on time which i mentioned for rainfall. it affects the projection. here i attach the mail. anybody go through and help to clear the errors.
thanks in advance
i have one more issue. i have cleared the errors as much as possible. i have some errors regarding the function used INTEG in equation. if possible ,clarify this error. and i have tried to do simulation like floating point error on time which i mentioned for rainfall. it affects the projection. here i attach the mail. anybody go through and help to clear the errors.
thanks in advance
 Attachments

 WDM.mdl
 (12.65 KiB) Downloaded 27 times

 Super Administrator
 Posts: 2782
 Joined: Wed Mar 05, 2003 3:10 am
Re: query regarding errors in model
First problem, you've got rainfall = seasonal rainfall/Time. At time = 0, this causes a floating point error.
The next problem is caused by "RW storage rate" going negative.
Have a look at "HH with basic supply", is this correct? This has a knock on effect on everything else. The equation is definitely incorrect, it should be "integ(netgrwth of HH with BSconnection,initial hh with basic supply)".
As I keep saying, the unit errors in your model highlight all the problems. Once you've corrected the unit errors, check the values that you are calculating to make sure they are reasonable.
The next problem is caused by "RW storage rate" going negative.
Have a look at "HH with basic supply", is this correct? This has a knock on effect on everything else. The equation is definitely incorrect, it should be "integ(netgrwth of HH with BSconnection,initial hh with basic supply)".
As I keep saying, the unit errors in your model highlight all the problems. Once you've corrected the unit errors, check the values that you are calculating to make sure they are reasonable.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559

 Junior Member
 Posts: 10
 Joined: Fri Jul 01, 2016 10:49 am
 Vensim version: Ventity
Re: query regarding errors in model
Hello,
i have given the time period for 100 years. why it takes the time '0'? what's there to change in time? is that equation correct?
i have given the time period for 100 years. why it takes the time '0'? what's there to change in time? is that equation correct?

 Super Administrator
 Posts: 2782
 Joined: Wed Mar 05, 2003 3:10 am
Re: query regarding errors in model
i have given the time period for 100 years. why it takes the time '0'? what's there to change in time?
You can change the constant INITIAL TIME or FINAL TIME.
is that equation correct?
I don't think so. But I don't know what you are trying to do here so cannot comment any further.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine27509559
Return to “System Dynamics Discussion”
Who is online
Users browsing this forum: No registered users and 1 guest