accept_strict_improvement: Default acceptance function. Accept current score if and only...

View source: R/score_accept.R

accept_strict_improvementR Documentation

Default acceptance function. Accept current score if and only if all elements are less than or equal than in best score and there's at least one improvement.

Description

Default acceptance function. Accept current score if and only if all elements are less than or equal than in best score and there's at least one improvement.

Usage

accept_strict_improvement(current_score, best_score, ...)

Arguments

current_score

One- or multi-dimensional score from the current optimizing iteration (double or vector of doubles)

best_score

Best one- or multi-dimensional score found so far (double or vector of doubles)

...

Ignored arguments that may be used by alternative acceptance functions

Value

Boolean, TRUE if current score should be taken as the new optimal score, FALSE otherwise


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