MCPcopy Create free account
hub / github.com/davisking/dlib / G

Function G

tools/python/test/test_global_optimization.py:30–31  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

28def F(a,b):
29 return -pow(a-2,2.0) - pow(b-4,2.0);
30def G(x):
31 return 2-pow(x-5,2.0);
32
33def test_global_function_search():
34 spec_F = dlib.function_spec([-10,-10], [10,10])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected