DTLZ2: The DTLZ2 test function.

Description Usage Arguments Value References Examples

View source: R/functions.R

Description

The DTLZ2 test function.

Usage

1
DTLZ2(individual, nObj)

Arguments

individual

The vector of individual (or matrix of population) to be evaluated.

nObj

The number of objective

Value

A matrix of size nObjective x population size, containing the objective values for each individual.

References

Deb, K., Thiele, L., Laumanns, M., Zitzler, E.: Scalable Multi-Objective Optimization Test Problems. In: Congress on Evolutionary Computation (CEC). pp. 825–830. IEEE Press, Piscataway, NJ (2002)

Examples

1
2
3
individual <- stats::runif(14)
nObj <- 4
DTLZ2(individual,nObj)

Example output

Check required python modules:
reticulate::py_module_available('numpy') and reticulate::py_module_available('pygmo').
If not available, try using MaOEA::install_python_dependencies()
or follow the instructions in https://esa.github.io/pagmo2/install.html
and call MaOEA::load_python_dependencies().
           [,1]
[1,] 0.00967373
[2,] 0.07285973
[3,] 0.05496448
[4,] 1.58222897

MaOEA documentation built on Aug. 31, 2020, 5:07 p.m.