RIME Optimization Algorithm
RIME Optimization Algorithm (RIME)
- Year introduced
- 2023
- Original authors
- Hang Su; Dong Zhao; Ali Asghar Heidari; Lei Liu; Xiaoqin Zhang; Majdi Mafarja; Huiling Chen
- Source of inspiration
- Rime ice
- Search space
- Continuous
- Optimization types
- Hyperparameter Optimization, Feature Selection
- Applied research in the repository
- 0
Overview
Inspired by how rime ice forms on trees and surfaces. "Soft rime" imitates wide search with movements in many directions (exploration), and "hard rime" imitates ice growing as needles through which the solution punctures towards the best (exploitation), with a positive greedy selection mechanism.
Source of inspiration and mechanism

Rime forms when supercooled water droplets freeze on contact with cold surfaces; in light winds a soft rime forms in many directions, and in strong winds a hard rime forms as needles in the direction of the wind.
Initialization
Random.
Update mechanism
A per-dimension update with greedy acceptance.
Exploration
The soft search with steps that span the full bounds.
Exploitation
Hard rime puncture by copying the best's dimensions.
Mathematical description
Soft rime: R_ij = R_best,j + r1·cosθ·β·(h(Ub − Lb) + Lb) with probability E = √(t/T) for each dimension, where θ = πt/(10T) and β is a decreasing step function. Hard rime: if r2 < the individual's normalized fitness, the dimension is copied from the best, R_ij = R_best,j.
Soft rime
R_{ij}^{new} = R_{best,j} + r_1\cos\theta\cdot\beta\cdot\left(h\,(Ub_{ij} - Lb_{ij}) + Lb_{ij}\right),\ r_2 < Eθ = πt/(10T), β = 1 − [w·t/T]/w, E = √(t/T), h random in [0,1].
Hard rime
R_{ij}^{new} = R_{best,j},\quad r_3 < F^{normr}(S_i)F^normr is the normalized fitness of the individual.
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 rime agents
for t = 1..T:
E = sqrt(t/T); theta = pi*t/(10T); beta = 1 - round(w*t/T)/w
for each agent i, dim j:
if r < E: soft-rime: R_ij = Rbest_j + r1*cos(theta)*beta*(h*(ub - lb) + lb)
if r2 < normalized fitness(i): hard-rime puncture: R_ij = Rbest_j
positive greedy selection
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 |
|---|---|---|---|---|
| w | w | 5 | Number of β degrees |
Advantages
- w
- An efficient dimension-copying mechanism.
Limitations
The soft step is defined relative to the absolute bounds.
Use in artificial intelligence
Domains documented in the card: Machine learning, Feature Selection, hyperparameter tuning
Continuous and engineering optimization, image segmentation, 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
Hang Su; Dong Zhao; Ali Asghar Heidari; Lei Liu; Xiaoqin Zhang; Majdi Mafarja; Huiling Chen (2023). RIME: A physics-based optimization. Neurocomputing, Elsevier BV.
Verified DOI: 10.1016/j.neucom.2023.02.010
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.
