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

Function test_on_holder_table

tools/python/test/test_global_optimization.py:64–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 return -abs(sin(x0)*cos(x1)*exp(abs(1-sqrt(x0*x0+x1*x1)/pi)))
63
64def test_on_holder_table():
65 x,y = find_min_global(holder_table,
66 [-10,-10],
67 [10,10],
68 300)
69 assert abs(y - -19.2085025679) < 1e-4

Callers

nothing calls this directly

Calls 2

find_min_globalFunction · 0.90
absFunction · 0.85

Tested by

no test coverage detected