View source: R/sim_annealing.R
simanneal_acceptance_prob | R Documentation |
A solution is always to be accepted if it leads to a lower score. Worse solutions should be accepted with a probability given by this function.
simanneal_acceptance_prob(current_score, best_score, temp, eps = 0.1)
current_score |
Score from the current optimizing iteration (scalar value, double) |
best_score |
Score from the current optimizing iteration (scalar value, double) |
temp |
Current value of annealing temperature |
eps |
Small parameter eps(ilon), achieving that not always the new solution is taken when scores are exactly equal |
Probability with which to accept the new score as the best one
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.