amplify_bbopt.objective_example.goldstein_price_functionΒΆ

goldstein_price_function(x0: float, x1: float) floatΒΆ

An example objective function (Goldstein-Price function). Yield the global minimum of 3 at (0, -1).

Parameters:
  • x0 (float) – A real number

  • x1 (float) – A real number

Returns:

The function value.

Return type:

float