rsopt.libe_tools.generator_functions package¶
Submodules¶
rsopt.libe_tools.generator_functions.local_opt_generator module¶
rsopt.libe_tools.generator_functions.particle_swarm module¶
rsopt.libe_tools.generator_functions.persistent_dlib module¶
rsopt.libe_tools.generator_functions.persistent_mobo module¶
rsopt.libe_tools.generator_functions.persistent_pysot module¶
rsopt.libe_tools.generator_functions.rsopt_localopt_support module¶
This module contains methods to interface with various local optimization routines.
- class rsopt.libe_tools.generator_functions.rsopt_localopt_support.LocalOptInterfacer(user_specs, x0, f0, grad0=None)[source]¶
Bases:
objectThis class defines the localopt interface to various local optimization routines.
Currently supported routines are
NLopt routines [‘LN_SBPLX’, ‘LN_BOBYQA’, ‘LN_COBYLA’, ‘LN_NEWUOA’, ‘LN_NELDERMEAD’, ‘LD_MMA’]
SciPy routines [‘scipy_Nelder-Mead’, ‘scipy_COBYLA’, ‘scipy_BFGS’]
DFOLS [‘dfols’]
External local optimizer [‘external_localopt’] (which use files to pass/receive x/f values)
- iterate(data)[source]¶
Returns an instance of either
numpy.ndarraycorresponding to the next iterative guess orConvergedMsgwhen the solver has completed its run.- Parameters:
x_on_cube – A numpy array of the point being evaluated (for a handshake)
f – A numpy array of the function evaluation.
grad – A numpy array of the function’s gradient.
fvec – A numpy array of the function’s component values.
- rsopt.libe_tools.generator_functions.rsopt_localopt_support.run_external_localopt(user_specs, comm_queue, x0, f0, child_can_read, parent_can_read)[source]¶
Runs an external local optimization run starting at
x0, governed by the parameters inuser_specs.
- rsopt.libe_tools.generator_functions.rsopt_localopt_support.run_local_dfols(user_specs, comm_queue, x0, f0, child_can_read, parent_can_read)[source]¶
Runs a DFOLS local optimization run starting at
x0, governed by the parameters inuser_specs.
rsopt.libe_tools.generator_functions.sobal module¶
- rsopt.libe_tools.generator_functions.sobal.uniform_random_sample(H, persis_info, gen_specs, _)[source]¶
Generates
gen_specs['user']['gen_batch_size']points uniformly over the domain defined bygen_specs['user']['ub']andgen_specs['user']['lb'].See also
test_uniform_sampling.py # noqa