Big Bang–Big Crunch
Big Bang-Big Crunch (BB-BC)
- Year introduced
- 2006
- Original authors
- Osman K. Erol; Ibrahim Eksin
- Source of inspiration
- The Big Bang and Big Crunch theory
- Search space
- Continuous
- Optimization types
- Hyperparameter Optimization
- Applied research in the repository
- 0
Overview
The centre of mass of the solutions is computed, weighted by the inverse of the cost, then a new population is generated around it with a Gaussian spread that shrinks with the iteration number.
Source of inspiration and mechanism

The algorithm alternates between two phases: a bang that scatters the solutions randomly, and a crunch that gathers them at a centre of mass.
Initialization
Random.
Update mechanism
Full regeneration around a centre.
Exploration
The wide early bang.
Exploitation
The spread shrinks as 1/k.
Mathematical description
Centre of mass
x^{c} = \frac{\sum_i \frac{1}{f_i}x_i}{\sum_i \frac{1}{f_i}}Explosion
x_{new} = x^{c} + \frac{l\, r}{k},\ r\sim N(0,1)l is the variable range, k the iteration number.
Computational complexity: O(K\cdot N\cdot (D + C_f))
Flowchart
A simplified chart summarising the algorithm phases as described on its card in the lab; it is not the original figure published in the paper.
Pseudocode
Big Bang: random population
for k = 1..K:
Big Crunch: compute centre of mass x_c
Big Bang: new points = x_c + l*N(0,1)/k
return bestPython implementation
This code was actually run while building the lab (NumPy) on the sphere function to make sure it works; this is a run test, not a performance claim.
import numpy as np
def big_bang_big_crunch(f, lb, ub, dim, n=50, iters=200, alpha=1.0, seed=0):
"""Big Bang-Big Crunch (Erol & Eksin, 2006): crunch to a fitness-weighted centre, then re-explode
with a spread that shrinks as 1/k."""
rng = np.random.default_rng(seed)
X = rng.uniform(lb, ub, (n, dim)); best, bval, curve = None, np.inf, []
for k in range(1, iters + 1):
F = np.apply_along_axis(f, 1, X)
if F.min() < bval: bval, best = F.min(), X[F.argmin()].copy()
w = 1 / (F - F.min() + 1e-12 + 1e-9 * abs(F.min())) # big crunch: centre of mass
c = (w[:, None] * X).sum(0) / w.sum()
X = np.clip(c + alpha * rng.normal(size=(n, dim)) * (ub - lb) / k, lb, ub) # big bang
X[0] = best
curve.append(bval)
return best, bval, curve
if __name__ == "__main__":
sphere = lambda z: float(np.sum(z ** 2))
best, val, curve = big_bang_big_crunch(sphere, -100, 100, dim=10)
print("best fitness:", val)
Coefficients
| Parameter | Symbol | Typical value | Range | Description |
|---|---|---|---|---|
| Population | N | 50 | ||
| Spread | α | 1 |
Advantages
Very simple and fast.
Limitations
The predetermined contraction may be faster than needed on multimodal functions.
Use in artificial intelligence
Domains documented in the card: Machine learning, hyperparameter tuning
Continuous optimization, structural engineering design.
Hybridization potential
These are partnerships suggested theoretically in the card; any resulting design is presented as a "proposed hybrid method" until its results are compared with the literature.
Applied research from the repository
An aspect that did not appear in the current search results within the repository. This does not mean there is no published research outside it.
Original reference
Osman K. Erol; Ibrahim Eksin (2006). A new optimization method: Big Bang–Big Crunch. Advances in Engineering Software, Elsevier BV.
Verified DOI: 10.1016/j.advengsoft.2005.04.005
External links collected from a search index and from paper abstracts; check that they are the original authors’ code and that they work before relying on them.
Also written BB-BC.
