A helper function for creating a new generation of possible solutions.
create_new_generation(
elitism,
population,
start_time,
end_time,
fitness,
n_events,
mutation_factor,
mutation_rate,
current_model,
allow_overlap
)
A new generation of candidate models.
The degree of elitism (promote a percentage of the best solutions) in the genetic algorithm.
The size of the population in the genetic algorithm.
A list with model's event start times.
A list with model's event end times.
A fitness score of all candidate models.
Number of events in the model.
The mutation factor in the genetic algorithm.
The mutation rate in the genetic algorithm.
The constraints of the current model.
Whether to allow overlap between events.