create_new_generation {autohrf} | R Documentation |
create_new_generation
Description
A helper function for creating a new generation of possible solutions.
Usage
create_new_generation(
elitism,
population,
start_time,
end_time,
fitness,
n_events,
mutation_factor,
mutation_rate,
current_model,
allow_overlap
)
Arguments
elitism |
The degree of elitism (promote a percentage of the best solutions) in the genetic algorithm. |
population |
The size of the population in the genetic algorithm. |
start_time |
A list with model's event start times. |
end_time |
A list with model's event end times. |
fitness |
A fitness score of all candidate models. |
n_events |
Number of events in the model. |
mutation_factor |
The mutation factor in the genetic algorithm. |
mutation_rate |
The mutation rate in the genetic algorithm. |
current_model |
The constraints of the current model. |
allow_overlap |
Whether to allow overlap between events. |
Value
A new generation of candidate models.
[Package autohrf version 1.1.3 Index]