largest_eafdiff: Identify largest EAF differences

Description Usage Arguments Value References Examples

View source: R/interactive.R

Description

Given a list of datasets, return the indexes of the pair with the largest EAF differences according to the method proposed by \citetDiaLop2020ejor.

Usage

1
largest_eafdiff(data, maximise = FALSE, intervals = 5, reference, ideal = NULL)

Arguments

data

(list(1)) A list of matrices with at least 3 columns

maximise

(logical() | logical(1))
Whether the objectives must be maximised instead of minimised. Either a single logical value that applies to all objectives or a vector of logical values, with one value per objective.

intervals

(integer(1))
The absolute range of the differences [0, 1] is partitioned into the number of intervals provided.

reference

(numeric())
Reference point as a vector of numerical values.

ideal

(numeric())
Ideal point as a vector of numerical values.

Value

(list()) A list with two components best_pair and best_value.

References

\insertAllCited

Examples

1
2
3
4
5
6
7
8
# FIXME: This example is too large, we need a smaller one.
files <- c("wrots_l100w10_dat","wrots_l10w100_dat")
data <- lapply(files, function(x)
               read_datasets(file.path(system.file(package="eaf"),
                             "extdata", x)))
nadir <- apply(do.call(rbind, data)[,1:2], 2, max)
x <- largest_eafdiff(data, reference = nadir)
str(x)

eaf documentation built on May 7, 2021, 5:06 p.m.