calc_capacity#

calc_capacity(population, nticks, cbr, verbose=False)[source]#

Calculate the population capacity after a given number of ticks based on a constant birth rate (CBR).

Parameters:
  • population (uint32) – The initial population.

  • nticks (uint32) – The number of ticks (time steps) to simulate.

  • cbr (float32) – The constant birth rate per 1000 people per year.

  • verbose (bool) – If True, prints detailed population growth information. Defaults to False.

Returns:

The estimated population capacity after the given number of ticks.

Return type:

uint32