Open
Description
at the above line, the argument
eliminate_duplicates=False,
should be added.
Because, when duplicates are removed in the course of the algorithm running, the actual population size will become less than the value in self.pop_size. This, in turn, will lead to the index I in _infill() going beyond the size of the array X, which results in an error.
(This happened to me when I initialized the population with all zero values to see how well the ES would recover from all solutions being infeasible in my problem - that went well (with the above fix)!)
Metadata
Metadata
Assignees
Labels
No labels