unique_optimum: Check new optimum for uniqueness.

Description Usage Arguments Value

View source: R/unique_optimum.R

Description

This function checks if a new optimum argument is not yet contained in L.

Usage

1
unique_optimum(L, argument, tolerance)

Arguments

L

A list of identified optima which contains lists with

  • value and

  • argument

of each identified optimum.

argument

The argument of a candidate optimum.

tolerance

A non-negative numeric value. For an identified optimum and a candidate optimum, if all coordinate differences are smaller than tolerance, they are considered as equal.

Value

A boolean. If TRUE, argument is not contained in L. If FALSE, argument is already contained in L.


vntrs documentation built on Oct. 18, 2021, 5:08 p.m.