which.dominated: Determine which points of a set are (non)dominated.

Description Usage Arguments Value Examples

Description

Simple wrapper functions around dominated. Given a matrix with one point per column which.dominated returns the row numbers of the dominated points and which.nondominated the column numbers of the nondominated points.

Usage

1
2
3

Arguments

x

[matrix]
Numeric (n x d) matrix where n is the number of points and d is the number of objectives.

Value

[integer]

Examples

1
2
3
4
5
6
  data(mtcars)
  # assume we want to maximize horsepower and minimize gas consumption
  cars = mtcars[, c("mpg", "hp")]
  cars$hp = -cars$hp
  idxs = which.nondominated(as.matrix(cars))
  print(mtcars[idxs, ])

jakobbossek/ecr documentation built on May 18, 2019, 9:09 a.m.