population_results function

Nested functions for initializing, calculating and collecting population simulator results.