MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / test_f2

Function test_f2

searches/hill_climbing.py:188–189  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

186 )
187
188 def test_f2(x, y):
189 return (3 * x**2) - (6 * y)
190
191 prob = SearchProblem(x=3, y=4, step_size=1, function_to_optimize=test_f1)
192 local_min = hill_climbing(prob, find_max=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected