mutation_rand: /rand mutation for DE

Description Usage Arguments Value Mutation Parameters References

View source: R/mutation_rand.R


Implements the "/rand/nvecs" mutation for the ExpDE framework


mutation_rand(X, mutpars)



population matrix


mutation parameters (see Mutation parameters for details)


Matrix M containing the mutated population

Mutation Parameters

The mutpars parameter contains all parameters required to define the mutation. mutation_rand() understands the following fields in mutpars:

  • f : scaling factor for difference vector(s).
    Accepts numeric vectors of size 1 or nvecs.

  • nvecs : number of difference vectors to use.
    Accepts 1 <= nvecs <= (nrow(X)/2 - 2)
    Defaults to 1.


K. Price, R.M. Storn, J.A. Lampinen, "Differential Evolution: A Practical Approach to Global Optimization", Springer 2005

ExpDE documentation built on May 20, 2017, 12:46 a.m.
Search within the ExpDE package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.