Henry Gas Solubility Optimization
Henry Gas Solubility Optimization (HGSO)
- Year introduced
- 2019
- Original authors
- Fatma A. Hashim; Essam H. Houssein; Mai S. Mabrouk; Walid Al-Atabany; Seyedali Mirjalili
- Source of inspiration
- Henry's law of gas solubility
- Search space
- Continuous
- Optimization types
- Hyperparameter Optimization, Feature Selection
- Applied research in the repository
- 0
Overview
Inspired by Henry's law, which relates the solubility of a gas in a liquid to its partial pressure. The population is split into groups (gas types), each group has a Henry's constant that changes with temperature, and the molecules move towards the best molecule in their group and the best molecule overall.
Source of inspiration and mechanism

Henry's law states that the amount of gas dissolved in a liquid is directly proportional to its partial pressure above the liquid at constant temperature (S = H·P), as in carbonated drinks.
Initialization
Random, with a split into equal groups.
Update mechanism
A multi-group physical update.
Exploration
Changing the sign F and replacing the worst.
Exploitation
Movement towards the best of the group and the best of the population.
Mathematical description
The Henry's constant of each group is updated with the equation H_j(t+1) = H_j(t)·exp(−C_j(1/T(t) − 1/T^θ)) with T(t) = exp(−t/T). The solubility is S = K·H·P. A molecule moves towards the best of its group and the best of the population with two coefficients α and β and a sign F. A fraction of the worst molecules is replaced with random positions.
Henry's law
S_g = H \times P_gS is the gas solubility, H Henry's constant, P the partial pressure.
Henry's constant update
H_j(t+1) = H_j(t)\times\exp\!\left(-C_j\left(\frac{1}{T(t)} - \frac{1}{T^{\theta}}\right)\right),\quad T(t) = \exp\!\left(\frac{-t}{iter}\right)T^θ = 298.15.
Computational complexity: O(T\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
Initialize; cluster into groups
for t = 1..T:
update Henry coefficients H_j and solubility S
update positions toward group best and global best
replace worst agents randomly
update bests
return bestPython implementation
There is currently no tested python implementation of this algorithm in the lab. We did not include untested code so that it is not used as a reference implementation.
Coefficients
| Parameter | Symbol | Typical value | Range | Description |
|---|---|---|---|---|
| Clusters | N_c | 2–5 | Number of groups | |
| α, β | \alpha,\beta | 1, 1 |
Advantages
A multi-group structure that preserves diversity.
Limitations
Many physical parameters (l1, l2, l3, α, β, K).
Use in artificial intelligence
Domains documented in the card: Machine learning, Feature Selection, hyperparameter tuning
Continuous and engineering optimization, feature selection.
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
Fatma A. Hashim; Essam H. Houssein; Mai S. Mabrouk; Walid Al-Atabany; Seyedali Mirjalili (2019). Henry gas solubility optimization: A novel physics-based algorithm. Future Generation Computer Systems, Elsevier BV.
Verified DOI: 10.1016/j.future.2019.07.015
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.
The bibliographic data match the Crossref record (checked 2026-11-20). There is no tested Python code for this algorithm in this version.
