1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Grey test functions: benchmarks whose decision variables are grey numbers.
//!
//! Unlike the crisp benchmarks (`fn(&[f64]) -> f64`), these operate on
//! [`Grey`] numbers and return the whitenized scalar to minimize, so they can
//! validate [`GreySpace`](crate::spaces::GreySpace) and `minimize_grey`.
use crateGrey;
/// Metadata for a grey test function.
/// Grey sphere: the expected (midpoint) sphere plus a unit penalty on the total
/// uncertainty. For grey numbers ⊗ᵢ with center `cᵢ` and spread `rᵢ`:
///
/// `f(⊗) = Σ cᵢ² + Σ rᵢ`.
///
/// Global minimum `f = 0` at the crisp origin (every ⊗ᵢ = `[0, 0]`): the
/// objective rewards both accuracy (centers at 0) and certainty (zero spread).
///
/// Note: the spread term is written explicitly rather than via interval
/// arithmetic. Squaring an interval as `⊗·⊗` would overestimate (the
/// dependency problem: `[−r, r]·[−r, r] = [−r², r²]`, whose center is 0
/// regardless of `r`), which would fail to penalize uncertainty and leave the
/// optimum non-unique.
/// Metadata for [`grey_sphere`].
pub const GREY_SPHERE: GreyBenchmark = GreyBenchmark ;
/// All registered grey benchmarks with their metadata.
pub const GREY_ALL: & = &;
/// Looks up the metadata of a grey benchmark by name.