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., when libE_info["persistent"] isn’t True). Otherwise, the generation function starts a persistent nlopt local optimization run.