Surrogate CMA-ES (S-CMA-ES and DTS-CMA-ES) is a surrogate-based optimizing evolution strategy. It is based on the N. Hansen's CMA-ES algorithm which is interconnected with Gaussian processes (or random forests, that are, however, not maintained here anymore).
The issue is here:
https://github.com/bajeluk/surrogate-cmaes/blob/a11faad369a1f195cd3344b412171643aa4e4f7a/src/data/Archive.m#L227
you modify the
indicesToReturn
variable and then immediately rewrite it withnewIndicesToReturn