whv_rect {moocore} | R Documentation |
Compute (total) weighted hypervolume given a set of rectangles
Description
Calculates the hypervolume weighted by a set of rectangles (with zero weight
outside the rectangles). The function total_whv_rect()
calculates the
total weighted hypervolume as hypervolume()
+ scalefactor * abs(prod(reference - ideal)) * whv_rect()
. The details of the computation
are given by Diaz and López-Ibáñez (2021).
Usage
whv_rect(x, rectangles, reference, maximise = FALSE)
total_whv_rect(
x,
rectangles,
reference,
maximise = FALSE,
ideal = NULL,
scalefactor = 0.1
)
Arguments
x |
|
rectangles |
|
reference |
|
maximise |
|
ideal |
|
scalefactor |
|
Details
TODO
Value
numeric(1)
A single numerical value.
References
Juan Esteban Diaz, Manuel López-Ibáñez (2021). “Incorporating Decision-Maker's Preferences into the Automatic Configuration of Bi-Objective Optimisation Algorithms.” European Journal of Operational Research, 289(3), 1209–1222. doi: 10.1016/j.ejor.2020.07.059.
See Also
read_datasets()
, eafdiff()
, choose_eafdiff()
, whv_hype()
Examples
rectangles <- as.matrix(read.table(header=FALSE, text='
1.0 3.0 2.0 Inf 1
2.0 3.5 2.5 Inf 2
2.0 3.0 3.0 3.5 3
'))
whv_rect (matrix(2, ncol=2), rectangles, reference = 6)
whv_rect (matrix(c(2, 1), ncol=2), rectangles, reference = 6)
whv_rect (matrix(c(1, 2), ncol=2), rectangles, reference = 6)
total_whv_rect (matrix(2, ncol=2), rectangles, reference = 6, ideal = c(1,1))
total_whv_rect (matrix(c(2, 1), ncol=2), rectangles, reference = 6, ideal = c(1,1))
total_whv_rect (matrix(c(1, 2), ncol=2), rectangles, reference = 6, ideal = c(1,1))