clypto¶
Cythonized Library for Yet-another Performance Tool for Optimization — a high-performance, heavily compiled fork of MEALPY, stripped down to its absolute mathematical core and optimized with Cython.
The original monolithic framework has been aggressively reduced, cutting out all secondary overhead — visualization, complex logging, and heavy external dependencies — to isolate the core population-based metaheuristic optimizers (PBM). Translating the raw algorithmic structures and transition operators into native C-extensions removes Python’s runtime friction and bypasses the GIL.
What remains is a pure, ultra-lightweight, bloat-free catalog of compiled legacy
implementations: a high-speed, decoupled foundation built to power heavy
taxonomic processing and intensive benchmarks in the cmenpy ecosystem.
Get running in minutes — Install from a precompiled wheel and solve your first problem with the Quickstart.
Learn the API — Problems, decision variables, termination, and seeding are covered in the Tutorial.
Write your own optimizer — Implement a custom metaheuristic from scratch with the Custom algorithms guide and the Custom optimizers series.
Browse the catalog — Explore all 244 optimizers across 147 modules, grouped by taxonomy category.
Check before you benchmark — Review Known Issues — weak, buggy, or plagiarism-suspect algorithms, grouped by category.
Why clypto?¶
Lean core & zero bloat — all UI, plotting, and file-writing features were amputated, leaving an ultra-lightweight catalog that is easy to consume as a clean, plug-and-play mathematical dependency.
Aggressive agent refactoring — the original agent state model was redesigned into a streamlined, flat population structure that maximizes data locality.
Didactic catalog architecture — every legacy algorithm reads as a few lines of pure Python/NumPy transition rules, making it a good mold for study and adaptation.
Ecosystem ready — a decoupled, standardized engine tailored to external benchmarking, evaluation frameworks, and modern optimization wrappers.
Attribution¶
This project is built entirely upon the foundational work of the original MEALPY authors, Nguyen Van Thieu and Seyedali Mirjalili, and the global community of researchers who designed and implemented the algorithms in this collection. Please cite the original work — see Citations.
Warning
Scientific integrity A number of algorithms ship with concerns about originality. See Known Issues before using or benchmarking them.
Getting Started
Custom Optimizers
- Custom Algorithms in Clypto
- 1. Writing Custom Algorithms in Pure Python
- 2. Writing Custom Algorithms in Cython (
.pyx) - 3. Compiling and Reusing Custom Algorithms
- 4. Building Packages with
clypto.build_extension - 5. Using Clypto in Jupyter Notebooks (
%%clypto) - 6. Command-Line Interface (
clyptoCLI) - 7. Best Practices & Performance Optimization
- Custom optimizers
Algorithm Categories
Project & Quality
API Reference
- Core API
- clypto/optimizer/native/optimizer
- clypto/optimizer/native/legacy
- clypto/optimizer/native/problem
- clypto/optimizer/bounds
- clypto/optimizer/native/population
- clypto/optimizer/native/agent
- clypto/optimizer/native/utils
- clypto/optimizer/history/tracker
- clypto/optimizer/precompile/declaration
- clypto/optimizer/precompile/base
- clypto/optimizer/precompile/decorator
- clypto/optimizer/agents/declaration
- clypto/optimizer/agents/runtime
- clypto/optimizer/agents/decorator
- clypto/optimizer/precompile/compiler
- clypto/optimizer/precompile/decoration
- clypto/optimizer/termination
- clypto/hints/array
- clypto/hints/primitives
- clypto/hints/sense