subscript and subrange-population

Use this forum to discuss any issues relating to Systems Dynamics and Systems Thinking.
Post Reply
lynchyml
Senior Member
Posts: 70
Joined: Wed Aug 26, 2009 8:36 am

subscript and subrange-population

Post by lynchyml »

I have rebuild a population model according to millenniuminstitute's T21 model.

there are several problems with subscript and subrange:

subscript range-age group-appears on the right,but not left

incorrect number of subscripts for age specific fertility distribution

incorrect number of subscripts for births

in correct number of subscripts for cohort


thank you very much!
Attachments
population.mdl
(31.77 KiB) Downloaded 1045 times
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

population

Post by LAUJJL »

It would be good first to put units in your model.
Try to build them independantly of the equatiions from the nature of the variable and then rebuild the equations with the help of this preliminary work. You may well correct the other errors you mention.
Regards.
JJ
lynchyml
Senior Member
Posts: 70
Joined: Wed Aug 26, 2009 8:36 am

Post by lynchyml »

thanks a lot for your suggestion,but I think the subrange of the model is the main problem.
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

population

Post by LAUJJL »

Hi

Logically one does not understand the use of the subscript agegroup. You should try to replace this subscript by subranges of the first subscript age. There are already subranges from the subscript age, it is then difficult to see the utility to add a second subscript that duplicate these subranges.
But whatever your changes in the model, unit dimension is an absolute elementary necessity that is respected in all serious models whether small, medium, large or very large.
Regards.
JJ

[Edited on 9-9-2009 by LAUJJL]
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

population

Post by LAUJJL »

Looking quickly at your model, I do not see how people are growing older. they seem not to grow older at all.
You should study both models; age.mdl and agechain.mdl and particularly the age.mdl that uses subscript mapping to simplify the sketch. They are available in the directory Vensim\models\sample\extra.
Subscript mapping is too explained in the user and reference guide.
Regards.
JJ
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

population

Post by LAUJJL »

Joined a simple example that uses subscript mapping and considers cohorts of one year with population initialized at 100000 people of one year old, but can be changed at will.
It has no gender subscript but could be a good start for further developments.
JJ
Attachments
population_simple.mdl
(4.84 KiB) Downloaded 1031 times
Vishah
Member
Posts: 25
Joined: Tue Apr 28, 2009 8:11 pm

Post by Vishah »

Its was good to find this discussion. I was also developing a population model from scratch according to the T21 and faced the same problem with the subscripts and subrange.
Vishah
Member
Posts: 25
Joined: Tue Apr 28, 2009 8:11 pm

Post by Vishah »

I have looked through the age.mdl model and i kind of got it, but when i run the model, i still get the errors that need to be corrected. Can anyone help me on how do i deal with these errors? See the attachment for details
Attachments
Errors in age.mdl.ppt
(170 KiB) Downloaded 871 times
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

population

Post by LAUJJL »

Hi Vishah

I can run the age.mdl with no problems and with no errors at least with no modifications.
The model I joined works too with no problems.
Are you using at least the Vensim Pro or DSS version?
the other versions have no subscripts, and the error may come from the Version.
Regards.
JJ
Vishah
Member
Posts: 25
Joined: Tue Apr 28, 2009 8:11 pm

Post by Vishah »

Thank you for your response. I am actually looking through the model that you joined and its really of help.
Vishah
Member
Posts: 25
Joined: Tue Apr 28, 2009 8:11 pm

Post by Vishah »

I want to create a new subrange "school going age". I know how to create the new subscript for this from the Users Guide, but they do not show how to select the ages in this range. E.G. when i am on "full" on the subscript control, when i click on the "school going age', it does not highlight the age i am interested in. It is not shown in the users guide on how to do this. Can anyone help. Tx in advance
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

population

Post by LAUJJL »

Hi Vishas

If you are on the full subscript and the subrange 'school going age appears' and you click on it, the ages should highlight underneath. If it does not, try cliking on the button at the right of the edit. It should go to the equation editor where you can modify the definition of the subrange.
A subrange is nothing more than a list separated by commas, of basic elements of the subscript.
Regards.
jj
Vishah
Member
Posts: 25
Joined: Tue Apr 28, 2009 8:11 pm

Post by Vishah »

Thank you for your quick response, You have guided me on how to do it.
Post Reply