amplify_bbopt.objective_example.sphere_functionΒΆ

sphere_function(x: list[float]) floatΒΆ

An example objective function (sphere function). Yield the global minimum of 0 at (0, 0, …).

Parameters:

x (list[float]) – An input vector.

Returns:

The function value.

Return type:

float