Skip to contents

With a falling from 2 to 0, each wolf moves to the mean over the leaders alpha, beta, delta of X_l - A |C X_l - X|, A = 2 a r1 - a, C = 2 r2 per coordinate.

Usage

GreyWolfOptimizer(f, bounds, n_pop = 20, max_iter = 200, seed = 0)

Arguments

f

Objective to minimise.

bounds

List of c(low, high) pairs or a two-column matrix.

n_pop

Population size.

max_iter

Iterations.

seed

Philox seed.

Value

list(x, fun, estimate, history, n_fev, method).

References

Mirjalili, S., Mirjalili, S. M. and Lewis, A. (2014). Grey wolf optimizer. Advances in Engineering Software 69, 46-61.

Examples

GreyWolfOptimizer(function(x) sum(x^2), list(c(-5, 5), c(-5, 5)), max_iter = 50)$fun
#> [1] 1.727444e-20