Equations in Desktop
births = sum([these_births])
pop size = sum([pop_size])
Equations in Age class
pop size: initial value = element([2,0,0,0],index(1))
ageing in = sum({ageing_next})
Where: {ageing_next}=../Next class/ageing (to Age class in next)
ageing out = element([1,0.2,0.1,0],index(1))*pop_size
births = if index(1)==1 then births else 0
deaths = m*pop_size
class = index(1)
m = element([0.05,0.01,0.01,0.05],index(1))
r = element([0,0.05,0.2,0.1],index(1))*(1-total_pop_size/100)
these births = r*pop_size
Equations in Next class
condition = class_next==class_this+1
Where: class_this=../Age class/class (from Age class in this) class_next=../Age class/class (from Age class in next)
ageing = ageing_out_this
Where: ageing_out_this=../Age class/ageing out (from Age class in this)
here: ageing_out_this=../Age class/ageing out (from Age class in this)/