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

Function test_f2

searches/simulated_annealing.py:122–123  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

120 )
121
122 def test_f2(x, y):
123 return (3 * x**2) - (6 * y)
124
125 prob = SearchProblem(x=3, y=4, step_size=1, function_to_optimize=test_f1)
126 local_min = simulated_annealing(prob, find_max=False, visualization=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected