simanneal_acceptance_prob: Acceptance probability for a new solution

View source: R/sim_annealing.R

simanneal_acceptance_probR Documentation

Acceptance probability for a new solution

Description

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.

Usage

simanneal_acceptance_prob(current_score, best_score, temp, eps = 0.1)

Arguments

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

Value

Probability with which to accept the new score as the best one


designit documentation built on May 29, 2024, 12:04 p.m.