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

Function test_f1

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

Source from the content-addressed store, hash-verified

97if __name__ == "__main__":
98
99 def test_f1(x, y):
100 return (x**2) + (y**2)
101
102 # starting the problem with initial coordinates (12, 47)
103 prob = SearchProblem(x=12, y=47, step_size=1, function_to_optimize=test_f1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected