addNDSet2D: Add 2D discrete points to a non-dominated set and classify...

View source: R/ndset.R

addNDSet2DR Documentation

Add 2D discrete points to a non-dominated set and classify them into extreme supported, non-extreme supported, non-supported.

Description

Add 2D discrete points to a non-dominated set and classify them into extreme supported, non-extreme supported, non-supported.

Usage

addNDSet2D(pts, nDSet = NULL, crit = "max", keepDom = FALSE)

Arguments

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.

Value

A data frame with columns z1 and z2, nD (non-dominated), ext (extreme), nonExt (non-extreme supported).

Author(s)

Lars Relund lars@relund.dk

Examples

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")

relund/gMOIP documentation built on Feb. 23, 2024, 12:11 p.m.