Ensure size of population is set when target size is set.
This commit is contained in:
parent
7756ceac4e
commit
88ef09db21
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user