why it takes too long time to run firefly algorithm?

I am using firefly algorithm to get optimal values of PID parameters for my system . I am using a simulink model simulating controller and plant . the problem here that when i run the algorithm it takes too long time may be 3 or 4 hours to run only 100 iterations how can I speed up the algorithm ?

4 件のコメント

Fer Ruiz
Fer Ruiz 2018 年 12 月 17 日
Hi, could you share your code?
Jan
Jan 2018 年 12 月 18 日
編集済み: Jan 2018 年 12 月 18 日
Use the profiler to find the bottleneck. Maybe you are running out of memory and the slow disk swapping is responsible. Or you store temporary files on a slow network drive. The readers cannot guess what happens on your computer and of course they cannot recommend to use the hidden tool fireflyMuchFaster, which is revealed for insiders only.
chaker ben salem
chaker ben salem 2022 年 3 月 11 日
am having the same problem, not for hours, but longer then other algorithms on the same problem, it takes 1 min for pso but 20 for firefly algorithm on a 500 iteration
Fatih D.
Fatih D. 2024 年 11 月 2 日
Some kind of the firefly algorithm may evaluates the objective function more than the number of population times iteration like the other algorithms because of its code structure.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Design Optimization についてさらに検索

製品

質問済み:

2017 年 6 月 4 日

コメント済み:

2024 年 11 月 2 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by