|
QDpy
|
Analytic objective functions and their illumination benchmark adapters. More...
Go to the source code of this file.
Namespaces | |
| namespace | qdpy |
| namespace | qdpy.benchmarks |
Analytic objective functions and their illumination benchmark adapters.
Definition in file artificial_landscapes.py.
|
protected |
Convert scalar-objective benchmark results into evaluator triples.
| ind | Genome to evaluate. |
| func | Objective callable returning a fitness sequence. |
| nb_features | Number of leading genome coordinates used as descriptors. |
Attach descriptors and named scores to a raw objective function. An illumination evaluator returns fitness, a prefix of the genome as descriptors, and a score mapping containing string coordinate keys plus ``perf`` for the first objective.
Definition at line 64 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.ackley | ( | ind, | |
| a = 20., | |||
| b = 0.2, | |||
| c = 2.*math.pi ) |
Ackley function defined as:
$$ f(x) = -a \exp^{-b \sqrt{1/n \sum_{i=1}^n x_i^2} - \exp^{1/n \sum_{i=1}^n \cos{c x_i}} + a + \exp^{1} $$
with $a=20, b=0.2, c=2\pi$ and with a search domain of $-32.768 < x_i < 32.768, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
Definition at line 269 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.deb01 | ( | ind | ) |
Deb01 function defined as:
$$ f(x) = - \frac{1}{n} \sum_{i=1}^{n} \sin(5 \pi x_i)^6 $$
with a search domain of $-1 < x_i < 1, 1 \leq i \leq n$.
Definition at line 554 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.dixon_price | ( | ind | ) |
Dixon Price function defined as:
$$ f(x) = (x_1 - 1)^2 + \sum_{i=2}^n i (2 x_i^2 - x_{i-1})^2$$
with a search domain of $-10 < x_i < 10, 1 \leq i \leq n$.
The global minimum is $f(x^{*}) = 0$ at $x_i = 2^{-(2^i-2)/(2^i)}$ for all $i=1,2,...,n$.
Definition at line 413 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.griewangk | ( | ind | ) |
Griewangk function defined as:
$$ f(x) = 1 + \sum_{i=1}^{n} \frac{x_i^2}{4000} - \prod_{i=1}^n \cos \frac{x_i}{\sqrt{i}} $$
with a search domain of $-600 < x_i < 600, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
Definition at line 229 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.levy | ( | ind | ) |
Levy function defined as:
$$ f(x) = \sin(\pi w_1)^2 + \sum_{i=1}^{n-1}(w_i-1)^2 (1+10 \sin(\pi w_i+1)^2) + (w_n-1)^2 (1+\sin(2\pi w_d)^2)$$
where $w_i = 1+ \frac{x_i-1}{4}$
with a search domain of $-10 < x_i < 10, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(1, ..., 1) = 0.
Definition at line 308 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.michalewicz | ( | ind, | |
| m = 10. ) |
Michalewicz function defined as:
$$ f(x) = - \sum_{i=1}^{n} \sin(x_i) \sin( \frac{i x_i^2}{\pi} )^(2*m)$$
with a search domain of $0 < x_i < \pi, 1 \leq i \leq n$.
Definition at line 460 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.perm0db | ( | ind, | |
| beta = 10. ) |
Perm function 0, D, BETA defined as:
$$ f(x) = \sum_{i=1}^n (\sum_{j=1}^n (j+\beta) (x_j^i - \frac{1}{j^i}) )^2$$
with a search domain of $-n < x_i < n, 1 \leq i \leq n$.
The global minimum is at $f(1, 1/2, ..., 1/n) = 0$.
Definition at line 331 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.permdb | ( | ind, | |
| beta = 0.5 ) |
Perm function D, BETA defined as:
$$ f(x) = \sum_{i=1}^d (\sum_{j=1}^n (j^i+\beta) ((\frac{x_j}{j})^i - 1) )^2$$
with a search domain of $-n < x_i < n, 1 \leq i \leq n$.
The global minimum is at $f(1, 2, ..., n) = 0$.
Definition at line 352 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.powell | ( | ind | ) |
Powell function defined as:
$$ f(x) = \sum_{i=1}^{n/4} ((x_{4i-3}+10x_{4i-2})^2 + 5(x_{4i-1}-x_{4i})^2 + (x_{4i-2}-2x_{4i-1})^4 + 10(x_{4i-3}-x_{4i})^4)$$
with a search domain of $-4 < x_i < 5, 1 \leq i \leq n$.
The dimension must be a positive multiple of four.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
Definition at line 435 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.qing | ( | ind, | |
| k = 10. ) |
Qing function defined as:
$$ f(x) = \sum_{i=1}^{n} (x_i^2 - i)^2$$
with a search domain of $-500 < x_i < 500, 1 \leq i \leq n$.
Definition at line 516 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.rastrigin | ( | ind, | |
| a = 10. ) |
Rastrigin test function.
Definition at line 174 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.rastrigin_normalised | ( | ind, | |
| a = 10. ) |
Rastrigin test function, with inputs and outputs scaled to be between 0. and 1.
Definition at line 157 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.rosenbrock | ( | ind | ) |
Rosenbrock function defined as:
$$ f(x) = \sum_{i=1}^{n-1} 100 \times (x_{i+1} - x_i^{2})^{2} + (1 - x_{i})^{2} $$
with a search domain of $-2.048 < x_i < 2.048, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(1, ..., 1) = 0.
Definition at line 137 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.rotated_hyper_ellipsoid | ( | ind | ) |
Rotated hyper-ellipsoid function defined as:
$$ f(x) = \sum_{i=1}^{n} \sum_{j=1}^{i} x_j^{2} $$
with a search domain of $-65.536 < x_i < 65.536, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
It is continuous, convex and unimodal.
Definition at line 117 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.schwefel | ( | ind | ) |
Schwefel function defined as:
$$ f(x) = 418.9829n - \sum_{i=1}^{n} x_i \sin(\sqrt(\norm(x_i))) $
with a search domain of $-500 < x_i < 500, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(420.9687, ..., 420.9687) = 0.
Definition at line 191 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.shubert04 | ( | ind | ) |
Shubert04 function defined as:
$$ f(x) = -\sum_{i=1}^n \sum_{j=1}^5 j \cos((j+1)x_i + j) $$
with a search domain of $-10 < x_i < 10, 1 \leq i \leq n$.
Definition at line 573 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.small_qing | ( | ind, | |
| k = 10. ) |
Qing function defined as:
$$ f(x) = \sum_{i=1}^{n} (x_i^2 - i)^2$$
with a search domain of $-4 < x_i < 4, 1 \leq i \leq n$.
Definition at line 534 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.small_schwefel | ( | ind | ) |
Schwefel function defined as:
$$ f(x) = 418.9829n - \sum_{i=1}^{n} x_i \sin(\sqrt(\norm(x_i))) $
with a search domain of $-100 < x_i < 100, 1 \leq i \leq n$.
Definition at line 211 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.sphere | ( | ind | ) |
Sphere function defined as:
$$ f(x) = \sum_{i=1}^{n} x_i^{2} $$
with a search domain of $-5.12 < x_i < 5.12, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
It is continuous, convex and unimodal.
Definition at line 78 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.styblinski_tang | ( | ind | ) |
Styblinski-Tang function defined as:
$$ f(x) = 1/2 \sum_{i=1}^{n} x_i^4 - 16 x_i^2 + 5 x_i $$
with a search domain of $-5 < x_i < 5, 1 \leq i \leq n$.
Definition at line 289 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.sum_of_powers | ( | ind | ) |
Sum Of Powers function defined as:
$$ f(x) = \sum_{i=1}^{n} \norm{x_i}^{(i+1)} $$
with a search domain of $-1 < x_i < 1, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
Definition at line 249 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.trid | ( | ind | ) |
Trid function defined as:
$$ f(x) = \sum_{i=1}^n (x_i - 1)^2 - \sum_{i=2}^n x_i x_{i-1}$$
with a search domain of $-n^2 < x_i < n^2, 1 \leq i \leq n$.
The global minimum is $f(x^{*}) = -n(n+4)(n-1)/6$ at $x_i = i(n+1-i)$ for all $i=1,2,...,n$.
Definition at line 374 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.trigonometric02 | ( | ind, | |
| k = 10. ) |
Trigonometric02 function defined as:
$$ f(x) = 1 + \sum_{i=1}^n [8\sin^2(7t_i) + 6\sin^2(14t_i) + t_i], \quad t_i = (x_i-0.9)^2.$$
The search domain is $[-500, 500]^n$ and the minimum is 1 at $(0.9, ..., 0.9)$.
Definition at line 497 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.wavy | ( | ind, | |
| k = 10. ) |
Wavy function defined as:
$$ f(x) = 1 - \frac{1}{n} \sum_{i=1}^{n} \cos(kx_i)e^{-\frac{x_i^2}{2}}$$
with a search domain of $-\pi < x_i < \pi, 1 \leq i \leq n$.
Definition at line 478 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.weighted_sphere | ( | ind | ) |
Weighted sphere function defined as:
$$ f(x) = \sum_{i=1}^{n} i \times x_i^{2} $$
with a search domain of $-5.12 < x_i < 5.12, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
It is continuous, convex and unimodal.
Definition at line 97 of file artificial_landscapes.py.
| qdpy.benchmarks.artificial_landscapes.zakharov | ( | ind | ) |
Zakharov function defined as:
$$ f(x) = \sum_{i=1}^n x_i^2 + (\sum_{i=1}^n 0.5 i x_i)^2 + (\sum_{i=1}^n 0.5 i x_i)^4$$
with a search domain of $-5 < x_i < 10, 1 \leq i \leq n$.
The global minimum is at $f(x_1, ..., x_n) = f(0, ..., 0) = 0.
Definition at line 393 of file artificial_landscapes.py.