Skip to content

Commit

Permalink
description texts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Dibyendu-IITKGP committed Dec 5, 2024
1 parent fcdee74 commit 2d5c7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions pybop/optimisers/_random_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ class RandomSearchImpl(PopulationBasedOptimiser):
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).
in "Introduction to Stochastic Search and Optimization: Estimation, Simulation, and
Control" by Spall, J. C. (2003).
The implementation leverages the pints library framework, which provides tools for
population-based optimization methods.
"""
Expand All @@ -30,7 +29,7 @@ def __init__(self, x0, sigma0=0.05, boundaries=None, population_size=None):
self._dim = len(x0) # Initialize _dim first

super().__init__(x0, sigma0, boundaries=boundaries)

# Population size, defaulting to a suggested value
self._population_size = population_size or self._suggested_population_size()
self.step_size = self._sigma0
Expand Down Expand Up @@ -70,7 +69,7 @@ def tell(self, replies):
"""
if not self._ready_for_tell:
raise RuntimeError("Optimiser not ready for tell()")

self._iterations += 1
self._ready_for_tell = False

Expand Down
5 changes: 2 additions & 3 deletions pybop/optimisers/pints_optimisers.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,8 @@ class RandomSearch(BasePintsOptimiser):
"""
Adapter for the Random Search optimiser in PyBOP.
Random Search is a simple optimisation algorithm that samples parameter
sets randomly within the given boundaries and identifies the best solution
based on fitness.
Random Search is a simple optimisation algorithm that samples parameter sets randomly
within the given boundaries and identifies the best solution based on fitness.
Parameters
----------
Expand Down

0 comments on commit 2d5c7d2

Please sign in to comment.