Assembly: AForge.Genetic (in AForge.Genetic.dll) Version: 18.104.22.168 (22.214.171.124)
public void Resize( int newPopulationSize )
- Type: System..::.Int32
New size of population.
The method does resizing of population. In the case if population should grow, it just adds missing number of random members. In the case if population should get smaller, the population's selection method is used to reduce the population.
|System..::.ArgumentException||Too small population's size was specified. The exception is thrown in the case if newPopulationSize is smaller than 2.|