Does genetic algorithm take a long time to find a solution?

Hi all,
I am using the genetic algorithm to find the solution for 28 kinetic rates. The system consists of 14 ODEs and 9 time course data points. I use dde23 to solve the equations. It seems that GA is really slow. I set the display option as 'iter'. I did not get output after running my program overnight. This is the first time that I use GA optimization so that I am not sure if my case is usual. Any comment is appreciated. Thank you.
Wendy

1 件のコメント

Star Strider
Star Strider 2014 年 6 月 20 日
Did you change your code so the sum squared error is the value you are minimising, and not its inverse?

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

回答 (1 件)

Prateekshya
Prateekshya 2024 年 7 月 22 日

0 投票

Hi Wendy,
I understand that Genetic Algorithm is taking more time than expected in your case. Here are a few troubleshooting steps:
  • Set appropriate tolerances for the ODE solver to balance accuracy and speed.If possible, vectorize the calculations within the ODE function to speed up evaluations.
  • MATLAB's Global Optimization Toolbox supports parallel computing, which can significantly speed up GA evaluations by distributing them across multiple cores or workers.
options = optimoptions('ga', 'UseParallel', true, 'Display', 'iter');
  • You may reduce the Population Size and Generations for the first iteration and increase it later if needed. You may also try using custom initial population.
I hope this helps!
Thank you.

カテゴリ

質問済み:

2014 年 6 月 20 日

回答済み:

2024 年 7 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by