(X)
| 37 | |
| 38 | |
| 39 | def rastrigin(X): |
| 40 | X = x_min + (x_max - x_min) * (X + 1.0) / 2.0 # map to [-5, 10] |
| 41 | return 10.0 * dim + jnp.sum(X**2 - 10.0 * jnp.cos(2.0 * jnp.pi * X), axis=-1) |
| 42 | |
| 43 | |
| 44 | def levy(X): |
nothing calls this directly
no outgoing calls
no test coverage detected