百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

immortal-jellyfish-algorithm

> 编程语言
开源

一种新型的生物启发的群智能优化器 — — 不朽水母算法 (IJA)

389 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一种新型的生物启发的群智能优化器 — — 不朽水母算法 (IJA)


What is IJA?

The Immortal Jellyfish Algorithm (IJA) is a novel metaheuristic optimizer inspired by two natural phenomena:

  1. The lifecycle of Turritopsis dohrnii — the only known animal that can revert from adult medusa to juvenile polyp form, cycling through four life stages indefinitely.
  2. Turritopsis dohrnii light propagation — the inverse-square law governing how light intensity falls off with distance from a point source.

Available in Python, C++, and Java.


Four-Phase Lifecycle

…

Key operators:

$$I_{i,s} = \frac{I_0}{1+\kappa|\mathbf{x}_i-\mathbf{g}_s|^2},e^{-\lambda\tau} \qquad \text{(Lighthouse Attraction)}$$

$$\mathbf{x}_i^{t+1} = \mathbf{x}_i^t + 0.01(u-l)\cdot L_j(\beta)\cdot(\mathbf{x}_i^t - \mathbf{x}^*) \qquad \text{(Lévy Exploration)}$$

$$\delta_j^t = A_0(1-\tau)^2\sin(2\pi f_p\tau+\phi_i)(u_j-l_j) \qquad \text{(Pulsed Swimming)}$$

Full derivations: docs/algorithm_details.md


Benchmark Results

Experiments: 30 independent runs, dimension D = 30.
IJA uses recommended settings; competitors use standard/published settings.

Convergence Curves

Algorithm Ranking Heatmap

Average Rank Summary

Final Fitness Distribution


Quick Start

Python

bash
pip install -r requirements.txt

python - <<'EOF'
import sys; sys.path.insert(0, "python")
from ija import IJA
import numpy as np

result = IJA(n=100, max_iter=2000, seed=0).optimize(
    lambda x: np.sum(x**2), dim=30, lb=-100.0, ub=100.0
)
print(f"Best fitness : {result.best_fitness:.6e}")
print(f"NFev         : {result.n_function_evals}")
EOF

More examples: python python/examples/quickstart.py

C++

bash
cd cpp && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release && make -j4
./ija_demo

Java

bash
cd java && mvn compile
mvn exec:java -Dexec.mainClass="ija.Main"

Project Structure

…

⚙️ IJA Recommended Parameters

Parameter Recommended Description
n 100 Population size
max_iter 2000 Maximum iterations
top_k 5 Lighthouse elites
levy_beta 1.5 Lévy exponent
archive_size 20 Elite archive capacity
age_max 20 Stagnation threshold
decay_lambda 0.3 Intensity decay rate
alpha_max 2.5 Max step-size
alpha_min 0.01 Min step-size

Citation

bibtex
@software{ija2025,
  title   = {Immortal Jellyfish Algorithm (IJA)},
  author  = {IJA Contributors},
  year    = {2025},
  url     = {https://github.com/LangZhong36/immortal-jellyfish-algorithm},
  license = {MIT}
}

Contributing

Fork → feature branch → PR. All three language implementations should remain feature-equivalent.


License

MIT — see LICENSE.


Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言