kappa: Coefficient that determines how quickly the weights for the individual score improvements drop when going from left to right (i.e. first to last score). Weight for the first score's delta is 1, then the original delta multiplied with kappa^(p-1) for the p'th score
simulated_annealing: Boolean; if TRUE, simulated annealing (SA) will be used to minimize the weighted improved score
temp_function: In case SA is used, a temperature function that returns the annealing temperature for a certain iteration number
Returns
Acceptance function which returns TRUE if current score should be taken as the new optimal score, FALSE otherwise