We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from lipo import GlobalOptimizer function = lambda x: x**2 pre_eval_x = dict(x=2) evaluations = [(pre_eval_x, function(**pre_eval_x))] search = GlobalOptimizer( function, lower_bounds={'x': -500}, upper_bounds={'x': 500}, evaluations=evaluations, maximize=False, ) num_function_calls = 500 search.run(num_function_calls)
$ search.optimum ({'x': 2}, 4.0, 0)
min(search.evaluations, key=lambda x: abs(x[1])) ({'x': 0}, 0.0)
whereat the underlying dlib.find_min_global works as expected:
dlib.find_min_global
from dlib import find_min_global find_min_global(lambda x: x**2, [-500], [500], is_integer_variable=[True], num_function_calls=500) ([0.0], 0.0)
Do I miss anything?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
whereat the underlying
dlib.find_min_global
works as expected:Do I miss anything?
The text was updated successfully, but these errors were encountered: