original_docstring: Calculate the population size of the next generation.
  
          Intuitively, the population should decay after each iteration since
          it should converge. It can also decrease the total resource required.
  
          Args:
              last_population_size: The last population size.
  
          Returns:
              The new population size.
          
docstring: Calculate the population size of the next generation.
  Intuitively, the population should decay after each iteration since
  it should converge. It can also decrease the total resource required.
docstring_tokens: Calculate the population size of the next generation . Intuitively the population should decay after each iteration since it should converge . It can also decrease the total resource required .
code: def _next_population_size(self, last_population_size):
          """Calculate the population size of the next generation.
  
          Intuitively, the population should decay after each iteration since
          it should converge. It can also decrease the total resource required.
  
          Args:
              last_population_size: The last population size.
  
          Returns:
              The new population size.
          """
          # TODO: implement an generic resource allocate algorithm.
          return int(max(last_population_size * self._population_decay, 3))
code_tokens: def _next_population_size ( self , last_population_size ) : return int ( max ( last_population_size * self . _population_decay , 3 ) )
short_docstring: Calculate the population size of the next generation.
short_docstring_tokens: Calculate the population size of the next generation .
comment: """Calculate the population size of the next generation.
  
          Intuitively, the population should decay after each iteration since
          it should converge. It can also decrease the total resource required.
  
          Args:
              last_population_size: The last population size.
  
          Returns:
              The new population size.
          """$SEP$# TODO: implement an generic resource allocate algorithm.