Particle Swarms

does this and that…

class olympus.planners.ParticleSwarms(*args, **kwargs)[source]

Particle swarm optimizer.

Parameters
  • goal (str) – The optimization goal, either ‘minimize’ or ‘maximize’. Default is ‘minimize’.

  • max_iters (int) – The maximum number of iterations for the swarm to search.

  • options (dict) –

    ???

  • particles (int) – The number of particles in the swarm.

Methods

tell([observations])

Provide the planner with all previous observations.

ask([return_as])

suggest new set of parameters

recommend([observations, return_as])

Consecutively executes tell and ask: tell the planner about all previous observations, and ask about the next query point.

optimize(emulator[, num_iter, verbose])

Optimizes a surface for a fixed number of iterations.

set_param_space(param_space)

Defines the parameter space over which the planner will search.