View source: R/sim_annealing.R
mk_simanneal_acceptance_func | R Documentation |
Generate acceptance function for an optimization protocol based on simulated annealing
mk_simanneal_acceptance_func(
temp_function = mk_simanneal_temp_func(T0 = 500, alpha = 0.8)
)
temp_function |
A temperature function that returns the annealing temperature for a certain cycle k |
A function that takes parameters (current_score
, best_score
, iteration
) for an optimization step and return a Boolean indicating whether the current solution should be accepted or dismissed. Acceptance probability of a worse solution decreases with annealing temperature.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.