Learn R Programming

nsga2R (version 1.1)

fastNonDominatedSorting: Fast Non-dominated Sorting

Description

A fast approach to sort non-dominated solutions into different nondomination levels.

Usage

fastNonDominatedSorting(inputData)

Arguments

inputData

Matrix of solutions with objective function values

Value

Return a list of indices for all fronts.

References

Deb, K., Pratap, A., Agarwal, S., and Meyarivan, T. (2002), " A fast and elitist multiobjective genetic algorithm: NSGA-II", IEEE Transactions on Evolutionary Computation, 6(2), 182-197.

Examples

Run this code
# NOT RUN {
set.seed(1234)
# randomly generate a polulation of fifty chromosomes, each with two objectives
y <- matrix(runif(100, -5, 5), nrow=50, ncol=2)
rankIdxList <- fastNonDominatedSorting(y)
rankIdxList
# }

Run the code above in your browser using DataLab