create_new_generation | R Documentation |
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
)
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. |
A new generation of candidate models.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.