A unimodal test function that returns the maximum absolute value in the input vector, also known as the Schwefel 2.21 function.
F04(x)Numeric scalar representing the function value.
Formula: $$f(x) = \max_i |x_i|$$
Global minimum: \(f(0, 0, ..., 0) = 0\)
Characteristics:
Type: Unimodal
Separable: No
Differentiable: No
Convex: Yes
Default bounds: \([-100, 100]^n\)
Default dimensions: 50
This function is particularly challenging because it only depends on the single variable with the largest absolute value, making gradient-based information less useful.
test-functions for an overview of all test functions,
get_function_details to retrieve function parameters.