View source: R/duplicateHandling.R
duplicateAndReplicateHandling | R Documentation |
Handle Duplicates and Replicates
duplicateAndReplicateHandling(xnew, x, lower, upper, control)
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 |
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.
matrix xnew
, with additional replicates for non-duplicates,
or duplicates replaced by random solutions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.