MCPcopy Index your code
hub / github.com/guofei9987/scikit-opt / obj_func

Function obj_func

examples/example_function_modes.py:30–34  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

28
29
30 def obj_func(p):
31 costly_function()
32 x1, x2 = p
33 x = np.square(x1) + np.square(x2)
34 return 0.5 + (np.square(np.sin(x)) - 0.5) / np.square(1 + 0.001 * x)
35
36
37 for mode in ('common', 'multithreading', 'multiprocessing'):

Callers

nothing calls this directly

Calls 1

costly_functionFunction · 0.85

Tested by

no test coverage detected