pybop.optimisers._random_search#
Classes#
Random Search (RS) optimisation algorithm. |
Module Contents#
- class pybop.optimisers._random_search.RandomSearchImpl(x0, sigma0=0.05, boundaries=None)[source]#
Bases:
pints.PopulationBasedOptimiserRandom Search (RS) optimisation algorithm. This algorithm explores the parameter space by randomly sampling points.
The algorithm does the following: 1. Initialise a population of solutions. 2. At each iteration, generate n number of random positions within boundaries. 3. Evaluate the quality/fitness of the positions. 4. Replace the best position with improved position if found.
- Parameters:
population_size (optional) – Number of solutions to evaluate per iteration.
References: The Random Search algorithm implemented in this work is based on principles outlined in “Introduction to Stochastic Search and Optimization: Estimation, Simulation, and Control” by Spall, J. C. (2003).
The implementation inherits from the PINTS PopulationOptimiser.
- _suggested_population_size()[source]#
Returns a suggested population size based on the dimension of the parameter space.