Ensure size of population is set when target size is set.

This commit is contained in:
Fabian Becker 2014-11-07 23:44:34 +01:00
parent 7756ceac4e
commit 88ef09db21

View File

@ -1633,6 +1633,7 @@ public class Population extends ArrayList<AbstractEAIndividual> implements Popul
@Parameter(name = "size", description = "The initial population size.")
public final void setTargetSize(int size) {
this.targetPopSize = size;
ensureCapacity(size);
}
/**