opytimizer.optimizers.social.bso¶
Brain Storm Optimization.
A BSO class, inherited from Optimizer.
This is the designed class to define BSO-related variables and methods.
References
Y. Shi. Brain Storm Optimization Algorithm. International Conference in Swarm Intelligence (2011).
Initialization method.
Parameters: params – Contains key-value parameters to the meta-heuristics.
Number of clusters.
Probability of replacing a random cluster.
Probability of selecting a single cluster.
Probability of selecting the best idea from a single cluster.
Probability of selecting the best idea from a pair of clusters.
Controls the sigmoid’s slope.
Performs the clusterization over the agents’ positions.
Parameters: agents – List of agents. Returns: Agents indexes and best agent index per cluster. Return type: (Tuple[np.ndarray, np.ndarray])
Calculates the sigmoid function.
Parameters: x – Input value. Returns: Output value.
Wraps Brain Storm Optimization over all agents and variables.
Parameters: - space – Space containing agents and update-related information.
- function – A Function object that will be used as the objective function.
- iteration – Current iteration.
- n_iterations – Number of iterations.s