Population sector with four age levels. Can be run independantly from other sectors with exogenous inputs. The initial code is defined p.170. Examples -------- Running the population sector alone requires artificial (exogenous) inputs which should be provided by the other s
| 44 | |
| 45 | |
| 46 | class Population: |
| 47 | """ |
| 48 | Population sector with four age levels. Can be run independantly from other |
| 49 | sectors with exogenous inputs. The initial code is defined p.170. |
| 50 | |
| 51 | Examples |
| 52 | -------- |
| 53 | Running the population sector alone requires artificial (exogenous) inputs |
| 54 | which should be provided by the other sectors. Start from the following |
| 55 | example: |
| 56 | |
| 57 | >>> pop = pop.Population() |
| 58 | >>> pop.set_population_table_functions() |
| 59 | >>> pop.init_population_constants() |
| 60 | >>> pop.init_population_variables() |
| 61 | >>> pop.init_exogenous_inputs() |
| 62 | >>> pop.set_population_delay_functions() |
| 63 | >>> pop.run_population() |
| 64 | |
| 65 | Parameters |
| 66 | ---------- |
| 67 | year_min : float, optional |
| 68 | start year of the simulation [year]. The default is 0. |
| 69 | year_max : float, optional |
| 70 | end year of the simulation [year]. The default is 75. |
| 71 | dt : float, optional |
| 72 | time step of the simulation [year]. The default is 1. |
| 73 | iphst : float, optional |
| 74 | implementation date of new policy on health service time [year]. |
| 75 | The default is 1940. |
| 76 | verbose : bool, optional |
| 77 | print information for debugging. The default is False. |
| 78 | |
| 79 | Attributes |
| 80 | ---------- |
| 81 | p1i : float, optional |
| 82 | p2 initial [persons]. The default is 65e7. |
| 83 | p2i : float, optional |
| 84 | p2 initial [persons]. The default is 70e7. |
| 85 | p3i : float, optional |
| 86 | p3 initial [persons]. The default is 19e7. |
| 87 | p4i : float, optional |
| 88 | p4 initial [persons]. The default is 6e7. |
| 89 | dcfsn : float, optional |
| 90 | desired completed family size normal []. The default is 4. |
| 91 | fcest : float, optional |
| 92 | fertility control effectiveness set time [year]. The default is 4000. |
| 93 | hsid : float, optional |
| 94 | health services impact delay [years]. The default is 20. |
| 95 | ieat : float, optional |
| 96 | income expectation averaging time [years]. The default is 3. |
| 97 | len : float, optional |
| 98 | life expectancy normal [years]. The default is 28. |
| 99 | lpd : float, optional |
| 100 | lifetime perception delay [years]. The default is 20. |
| 101 | mtfn : float, optional |
| 102 | maximum total fertility normal []. The default is 12. |
| 103 | pet : float, optional |
no outgoing calls