Feat: Add Kirchhoff's Law Algorithm (KLA) implementation #268
+159
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📑 Description
This PR adds the Kirchhoff's Law Algorithm (KLA), a physics-inspired metaheuristic based on the 2025 paper "Kirchhoff's law algorithm (KLA): a novel physics-inspired non-parametric metaheuristic algorithm for optimization problems".
During implementation and testing against the CEC-2014 benchmark suite, I addressed critical numerical instability issues found in high-conditioned functions. This submission includes a Robust Version of KLA with the following stability improvements:
✅ Checks
My pull request adheres to the code style of this project
My code requires changes to the documentation
I have updated the documentation as required
All the tests have passed
ℹ Additional Information
Tested on CEC-2014. The robust implementation matches the original paper's results on multimodal functions (e.g., F5) and outperforms it on complex functions like F11, F12, and F23 while maintaining stability on unimodal problems.
Reference Paper: Ghasemi, M., et al. "Kirchhoff's law algorithm (KLA)..." Artificial Intelligence Review (2025).