pareto_front: Identify Pareto front for two dimentional problem.

View source: R/functions.R

pareto_frontR Documentation

Identify Pareto front for two dimentional problem.

Description

Identify Pareto front for two dimentional problem.

Usage

pareto_front(x, y)

Arguments

x

vector of values

y

vector of values

Details

optimimum value is minimum of x and y by default, to change direction of prioritization one should change the sign of that values

Value

logical vector where TRUE correspond to point on a Pareto front

Examples

a <- data.frame(x = rnorm(100), y = rnorm(100))
a$front_1 <- pareto_front(a$x, a$y)
# to search for maximum values of x and minimum of y
a$front_1 <- pareto_front(-a$x, a$y)

DrrDom/pfpp documentation built on April 17, 2024, 10:24 a.m.