Feature: Add MLFA-GD (Firefly algorithm with multiple learning ability based on gender difference )#245
Closed
karakasarda wants to merge 3 commits into
Closed
Feature: Add MLFA-GD (Firefly algorithm with multiple learning ability based on gender difference )#245karakasarda wants to merge 3 commits into
karakasarda wants to merge 3 commits into
Conversation
Removed the creator comment from the MLFA_GD.py file.
Removed unnecessary comment about creation.
anh9895
reviewed
Feb 28, 2026
anh9895
left a comment
Collaborator
There was a problem hiding this comment.
Please fix the comments.
| @@ -0,0 +1,241 @@ | |||
| #!/usr/bin/env python | |||
|
|
|||
Collaborator
There was a problem hiding this comment.
Could you please copy the header from other files. And then update with your information. People will make assumption that I implement this code if there is no information of the coder.
|
|
||
| class MLFA_GD(Optimizer): | ||
| """ | ||
| MLFA-GD: Moderate Firefly Algorithm with Gender Difference (or Firefly Algorithm with Multiple Learning Ability based on Gender Difference) |
Collaborator
There was a problem hiding this comment.
This algorithm is a variant of Firefly Algorithm. Therefore, you need to put it inside the file swarm_based/FFA.py. Just copy this class and put it under the OriginalFFA class.
| 1. https://doi.org/10.1038/s41598-025-09523-9 | ||
| Notes: | ||
| Implementation based on the local PDF at D:\\Projects\\mealpy_v2\\MLFA-GD.pdf |
Collaborator
There was a problem hiding this comment.
Remove this local note. Use real DOI link.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 implements the Firefly algorithm with multiple learning ability based on gender difference(MLFA-GD), a new swarm-based optimization algorithm proposed in Scientific Reports (2025).
Changes included:
The implementation follows the official paper's methodology, integrating the Firefly algorithm with multiple learning ability based on gender difference for improved optimization performance.
Checks
Additional Information