DIRECT_L_RAND

class DIRECT_L_RAND(max_evals=1000)[source]

DIviding RECTangles Locally-biased Randomized optimizer.

DIRECT-L RAND is the “locally biased” variant with some randomization in near-tie decisions. See also DIRECT_L

NLopt global optimizer, derivative-free. For further detail, please refer to http://nlopt.readthedocs.io/en/latest/NLopt_Algorithms/#direct-and-direct-l

Parameters

max_evals (int) – Maximum allowed number of function evaluations.

Raises

NameError – NLopt library not installed.

Attributes

DIRECT_L_RAND.bounds_support_level

Returns bounds support level

DIRECT_L_RAND.gradient_support_level

Returns gradient support level

DIRECT_L_RAND.initial_point_support_level

Returns initial point support level

DIRECT_L_RAND.is_bounds_ignored

Returns is bounds ignored

DIRECT_L_RAND.is_bounds_required

Returns is bounds required

DIRECT_L_RAND.is_bounds_supported

Returns is bounds supported

DIRECT_L_RAND.is_gradient_ignored

Returns is gradient ignored

DIRECT_L_RAND.is_gradient_required

Returns is gradient required

DIRECT_L_RAND.is_gradient_supported

Returns is gradient supported

DIRECT_L_RAND.is_initial_point_ignored

Returns is initial point ignored

DIRECT_L_RAND.is_initial_point_required

Returns is initial point required

DIRECT_L_RAND.is_initial_point_supported

Returns is initial point supported

DIRECT_L_RAND.setting

Return setting

Methods

DIRECT_L_RAND.get_nlopt_optimizer()

Return NLopt optimizer type

DIRECT_L_RAND.get_support_level()

return support level dictionary

DIRECT_L_RAND.gradient_num_diff(x_center, f, …)

We compute the gradient with the numeric differentiation in the parallel way, around the point x_center.

DIRECT_L_RAND.optimize(num_vars, …[, …])

Perform optimization.

DIRECT_L_RAND.print_options()

Print algorithm-specific options.

DIRECT_L_RAND.set_max_evals_grouped(limit)

Set max evals grouped

DIRECT_L_RAND.set_options(**kwargs)

Sets or updates values in the options dictionary.

DIRECT_L_RAND.wrap_function(function, args)

Wrap the function to implicitly inject the args at the call of the function.