Slime Mould Algorithm

Decision Sciences
Introduced by
Shimin Li
Year
2020
Type
Nature-inspired metaheuristic algorithm
Family
Swarm Intelligence

What does it do?

The Slime Mould Algorithm (SMA) is a nature-inspired metaheuristic for optimization, introduced by Li et al. in 2020 in Future Generation Computer Systems.

It is modelled on the foraging behaviour of slime moulds, which extend and contract their body structures toward food sources. SMA is a population-based, derivative-free search method, so it is intended for problems where the objective is available only as a function value. Its relative performance against other metaheuristics should be checked against the original benchmarks and independent comparisons before it is relied on.

The intuition behind the method

Slime moulds forage effectively without a central nervous system. They extend branch-like structures into their surroundings and reinforce those that reach nutrients. SMA translates this into a population of candidate solutions that move toward the best solution found so far, with the strength of that pull depending on each candidate's fitness rank. Random perturbations keep part of the population exploring away from the current best. Early in the run the population is designed to spread out; as iterations proceed, the candidates are intended to concentrate around the most promising regions.

History

SMA was introduced by Shimin Li and co-authors in 2020, in Future Generation Computer Systems (volume 111, pages 300–323). It belongs to the swarm intelligence subfamily of nature-inspired metaheuristics and is modelled on slime mould foraging. Readers who need evidence of its validation should consult the original paper and later comparative studies.

When to use it

Choose SMA for continuous optimization problems where the objective can be evaluated but gradients are unavailable, unreliable or expensive to obtain, and where a global population-based search is preferred over a local method. It is a reasonable candidate when the landscape may contain several local optima. For smooth objectives where reliable gradients are available, gradient-based methods are usually cheaper; for noisy or non-differentiable objectives, population methods may be preferred. It is also a poor choice when each objective evaluation is very costly, because a population method needs many evaluations per iteration. For problems with discrete variables, the encoding and handling of integer values must be specified by the user and checked against the original paper.

Limitations and considerations

  • Each iteration evaluates the whole population, so total cost grows with both population size and iteration count.
  • Performance can degrade on high-dimensional problems, where the search space grows quickly relative to the population.
  • Because initialisation and perturbations are random, results vary between runs and no guarantee of reaching the global optimum is given.
  • Engineering applications may require problem-specific adjustment of the search settings.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The movement rule is tied to fitness ranking, so the balance between broad search and concentration around good solutions shifts over the run without a separately specified schedule.
  • Being population-based and derivative-free, it requires only objective function values and can be applied to black-box problems.
  • Constraints can be handled through penalty terms that lower the fitness of infeasible candidates, as described in the FAQ below.

Applications

  • Engineering design problems with several constraints, such as structural or mechanical configuration.
  • Parameter tuning for machine learning models, such as selecting learning rates or regularisation constants.
  • Resource allocation problems with a continuous or near-continuous objective.
  • Before adopting SMA for any of these, check the literature for SMA studies on the target problem.

How it works

How it works

1

Place a population of candidate solutions at random positions within the bounds of the search space and evaluate the objective value of each one.

2

Move each candidate toward the best solution found so far, scaled by a weight that favours individuals with better fitness, and add random perturbations that keep the search exploring. The weight depends on fitness rank, and the balance between exploration and exploitation changes over the run. The exact update equations and weight formula are given in the original paper by Li et al. (2020) and should be implemented from that source.

3

Compute the objective value of each updated position and compare it with the previous values, so that the best solution found so far is recorded.

4

Repeat the update and evaluation steps until a stopping criterion is met, such as convergence or a maximum iteration count.

Common pitfalls

  • If the fitness-dependent weight pulls candidates strongly toward the current best early in the run, the population can converge prematurely to a local optimum.
  • If the initial population is concentrated in a small part of the search space, the early exploration phase cannot cover the rest of the domain.
  • If decision variables have very different ranges and are not scaled, the same position update and perturbation act very differently across dimensions, which can degrade the search.
  • With penalty-based constraint handling, a penalty that is too weak can let infeasible candidates rank well, while one that is too strong can make the feasible region hard to reach.

Frequently asked questions

How does the weight mechanism in SMA differ from other metaheuristics like PSO?

PSO updates each particle using a velocity vector that combines cognitive and social terms. SMA instead updates candidate positions through a weight that depends on fitness ranking, and the balance between exploration and exploitation changes over the run. The exact weight formula is given in the original paper by Li et al. (2020) and should be implemented from that source.

Is SMA suitable for solving constrained optimization problems?

It can be used with constraint-handling techniques such as penalty functions. Infeasible solutions receive reduced fitness values, which guides the search toward the feasible region. The penalty design strongly affects the result, so it should be tested on the specific problem.

How should I set the population size for my problem?

No fixed rule applies across problems. Larger populations generally improve global coverage but increase the number of objective evaluations per iteration. The population size should be chosen by testing on the specific problem, comparing solution quality and computational cost.

How quickly does SMA converge?

Convergence behaviour depends on the problem and the chosen settings. Consult the original paper and later studies for convergence evidence before drawing conclusions about a specific problem.

How should I report SMA results?

Because initialisation and perturbations are random, run the algorithm several times with independent random seeds and report the mean, best and standard deviation of the final objective values. State the stopping criterion and the evaluation budget, check the feasibility of the reported best solution separately from its penalised fitness, and compare against baseline methods under the same evaluation budget.

Related methods

Sources

  1. Li, S., Chen, H., Wang, M., Heidari, A. A., & Chakraborty, S. (2020). Slime mould algorithm: A new method for stochastic optimization. Future Generation Computer Systems, 111, 300-323.

    Open DOI reference