Skip to main content

Schwefel

Module: opytimizer.benchmarks.single_objective

Schwefel's problem 2.26: f(x) = 418.9829 n - sum(x_i sin(sqrt|x_i|)).

Deceptive multimodal function; f* ~ 0 at x* ~ 420.9687.

Constructor​

Schwefel(n_variables: int = 30, lower_bound: Union[float, int, Sequence[float], NoneType] = None, upper_bound: Union[float, int, Sequence[float], NoneType] = None, env: Optional[opytimizer.core.environment.Environment] = None) -> None

Parameters​

ParameterTypeDefaultDescription
n_variablesint30Number of decision variables.
lower_boundUnion[float, int, Sequence[float], NoneType]NoneLower bound(s). Defaults to the standard domain of the problem.
upper_boundUnion[float, int, Sequence[float], NoneType]NoneUpper bound(s). Defaults to the standard domain of the problem.
envOptional[opytimizer.core.environment.Environment]NoneEnvironment that runs the problem. Defaults to numpy / float64.