# Nisze i utrzymywanie różnorodności populacji

EN: **Niching and diversity preservation** · id `niching` · aliases: niching, niching methods, diversity preservation, metody niszowe, utrzymywanie różnorodności

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Obliczenia ewolucyjne i inteligencja roju](https://aiatlasgraph.com/t/evolutionary.md) › [Budowa algorytmu ewolucyjnego: reprezentacja, operatory, parametry](https://aiatlasgraph.com/t/evodesign.md) › Nisze i utrzymywanie różnorodności populacji

## Description

- PL: Techniki zachowania różnorodności, pozwalające metaheurystykom populacyjnym znaleźć wiele optimów funkcji wielomodalnej w jednym przebiegu.
- EN: Diversity-preserving techniques that let population-based metaheuristics locate multiple optima of a multimodal function in a single run.

## In one sentence

- PL: Sztuczki, które nie pozwalają całej populacji stłoczyć się wokół jednego rozwiązania i pozwalają znaleźć kilka dobrych naraz.
- EN: Tricks that stop the whole population crowding around one solution and let it find several good ones at once.

## Problem it solves

- PL: Algorytm szybko zbiega do jednego pomysłu, często nie najlepszego, i gubi inne obiecujące warianty.
- EN: The algorithm quickly converges on one idea, often not the best, and loses other promising options.

## What it does

- PL: Jak kilka restauracji na jednej ulicy: gdy jedna kuchnia ma już tłum gości, opłaca się otworzyć inną, zamiast kolejnej takiej samej.
- EN: Like restaurants on one street: when one cuisine already has a crowd, it pays to open a different one rather than another copy.

## Everyday example

- PL: Inżynier projektuje wspornik i dostaje od algorytmu trzy zupełnie różne, równie mocne kształty, między którymi wybiera po kosztach produkcji.
- EN: An engineer designing a bracket gets three quite different, equally strong shapes from the algorithm and chooses among them by production cost.

## This concerns you if you…

- PL: twój problem ma wiele równie dobrych rozwiązań
- PL: algorytm zbyt szybko przestaje się poprawiać
- PL: chcesz mieć kilka wariantów do wyboru
- EN: your problem has many equally good solutions
- EN: the algorithm stops improving too early
- EN: want several options to choose from

## Keywords

fitness sharing · deterministic crowding · clearing · speciation · restricted tournament selection · multimodal optimization · CEC niching benchmark · diversity maintenance

## How it works

- PL: Współdzielenie przystosowania obniża ocenę osobników w zatłoczonym sąsiedztwie. Crowding każe potomkowi zastąpić najbardziej podobnego osobnika, o ile jest lepszy. Clearing i specjacja wyznaczają zwycięzców nisz i podpopulacje wokół różnych optimów.
- EN: Fitness sharing lowers the fitness of individuals in a crowded neighbourhood. Crowding makes an offspring replace the most similar individual if it is better. Clearing and speciation pick niche winners and grow subpopulations around different optima.

## Limits

- PL: Wiele metod wymaga promienia niszy, który trudno dobrać bez wiedzy o problemie i który zawodzi przy nierówno rozłożonych optimach. Liczenie odległości między osobnikami jest kosztowne w dużych populacjach.
- EN: Many methods need a niche radius that is hard to set without problem knowledge and fails when optima are unevenly spaced. Computing pairwise distances is costly for large populations.

## Key terms

- PL: **funkcja wielomodalna**: Funkcja celu z wieloma szczytami lub dolinami.
- PL: **promień niszy**: Odległość, poniżej której osobniki uznaje się za konkurentów.
- PL: **przedwczesna zbieżność**: Utrata różnorodności, zanim znaleziono dobre rozwiązanie.
- EN: **multimodal function**: An objective with many peaks or valleys.
- EN: **niche radius**: Distance below which individuals are treated as competitors.
- EN: **premature convergence**: Losing diversity before a good solution has been found.

## Know first

- [Algorytmy genetyczne (Genetic algorithms (GA))](https://aiatlasgraph.com/t/geneticalgorithms.md)

## Related topics

Untyped, symmetric "see also" links.

- [MAP-Elites: mapa najlepszych wariantów (MAP-Elites)](https://aiatlasgraph.com/t/mapelites.md)

## Sources

- [Seeking multiple solutions: an updated survey on niching methods and their applications](<https://eprints.lancs.ac.uk/83738/1/Seeking_multiple_solutionsLEDE2016.pdf>) `li-niching-2017` · by Xiaodong Li, Michael G. Epitropakis, Kalyanmoy Deb, Andries Engelbrecht

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/niching · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
