Tutorial on the NSGA-II crowding distance function

This script illustrates the computation of the crowding distance in the NSGA-II algorithm.
5 Downloads
Updated 3 Mar 2025

View License

NSGA-II is one of the most popular multi-objective evolutionary optimization algorithms,
introduced by Deb. et al. in 2002 (see "A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II",
IEEE Trans. on Evolutionary Computation, vol. 6, no. 2, pp. 182-197).
The crowding distance is one of the key elements in NSGA-II.
This function illustrates its computation. It is intended as a tutorial guide for students.

Cite As

MC_[old_and_to_be_deleted] (2026). Tutorial on the NSGA-II crowding distance function (https://au.mathworks.com/matlabcentral/fileexchange/125825-tutorial-on-the-nsga-ii-crowding-distance-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.1

Only little improvements in the plot.

1.0.0