duplicateAndReplicateHandling: duplicateAndReplicateHandling

View source: R/duplicateHandling.R

duplicateAndReplicateHandlingR Documentation

duplicateAndReplicateHandling

Description

Handle Duplicates and Replicates

Usage

duplicateAndReplicateHandling(xnew, x, lower, upper, control)

Arguments

xnew

matrix of new candidate solution(s), one row for each solution.

x

matrix of evaluated solutions.

lower

vector for lower boundary of decision space

upper

vector for upper boundary of decision space

control

list of controls

Details

This function deals with duplicates, that is, when a candidate solution (xnew) has already been evaluated (that is, xnew is element of x). If control$noise is TRUE (objective is noisy), duplicates are allowed. In that case, this function only makes sure that such duplicates do not receive additional replications (i.e., the duplicate is evaluated only once). If the objective is not noisy, duplicates are replaced by randomly created solution and a warning is given.

Value

matrix xnew, with additional replicates for non-duplicates, or duplicates replaced by random solutions.


SPOT documentation built on June 26, 2022, 1:06 a.m.