addNDSet2D | R Documentation |
Add 2D discrete points to a non-dominated set and classify them into extreme supported, non-extreme supported, non-supported.
addNDSet2D(pts, nDSet = NULL, crit = "max", keepDom = FALSE)
pts |
A data frame. It is assumed that z1 and z2 are in the two first columns. |
nDSet |
A data frame with current non-dominated set (NULL is none yet). |
crit |
Either max or min. |
keepDom |
Keep dominated points. |
A data frame with columns z1 and z2, nD
(non-dominated),
ext
(extreme), nonExt
(non-extreme supported).
Lars Relund lars@relund.dk
nDSet <- data.frame(z1=c(12,14,16,18), z2=c(18,16,12,4))
pts <- data.frame(z1 = c(18,18,14,15,15), z2=c(2,6,14,14,16))
addNDSet2D(pts, nDSet, crit = "max")
addNDSet2D(pts, nDSet, crit = "max", keepDom = TRUE)
addNDSet2D(pts, nDSet, crit = "min")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.