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

Function holder_table

python_examples/global_optimization.py:35–36  ·  view source on GitHub ↗
(x0,x1)

Source from the content-addressed store, hash-verified

33# It has a bunch of local minima, with the global minimum resulting in
34# holder_table()==-19.2085025679.
35def holder_table(x0,x1):
36 return -abs(sin(x0)*cos(x1)*exp(abs(1-sqrt(x0*x0+x1*x1)/pi)))
37
38# Find the optimal inputs to holder_table(). The print statements that follow
39# show that find_min_global() finds the optimal settings to high precision.

Callers

nothing calls this directly

Calls 3

absFunction · 0.85
expFunction · 0.85
sqrtFunction · 0.50

Tested by

no test coverage detected