EMI-Group / evox

Distributed GPU-Accelerated Framework for Evolutionary Computation. Comprehensive Library of Evolutionary Algorithms & Benchmark Problems.
BSD 3-Clause "New" or "Revised" License
188 stars 34 forks source link

CSO algorithm's new population is not clipped #19

Closed sses7757 closed 2 years ago

sses7757 commented 2 years ago

The CSO algorithm's generation of new population ends here, and it seems that there is no code like jnp.clip or jnp.min, jnp.max. Is it okay to let the population run free on an unconstrained sapce?

BillHuang2001 commented 2 years ago

You are right, and actually, nsga2, naive_es, pso all have jnp.clip, a PR is welcome.

BillHuang2001 commented 2 years ago

Fixed in https://github.com/EMI-Group/evoxlib/pull/21#issue-1372434277