uniform_or_localopt
Required: nlopt
This module is a persistent generation function that performs a uniform
random sample when libE_info["persistent"]
isn’t True
, or performs a
single persistent persistent nlopt local optimization run.
- uniform_or_localopt.uniform_or_localopt(H, persis_info, gen_specs, libE_info)
This generation function returns
gen_specs["user"]["gen_batch_size"]
uniformly sampled points when called in nonpersistent mode (i.e., whenlibE_info["persistent"]
isn’tTrue
). Otherwise, the generation function starts a persistent nlopt local optimization run.See also
test_uniform_sampling_then_persistent_localopt_runs.py # noqa