Script run takes too much time

hello everyone,
ı am working on a problem where i use global optimization toolbox problem based approach. I choosed genetic algorithm as a solver. I do not know whay but it says script is running but never gaves me a solution. I need assistance to understand the reason behind it. I previously used solver based approach but it was not taking any time to run. I read that problem based normlaly takes longer time to run compared to the solver based but it has been hours and it still did not gave a solution. Is this normal? or am i doing something wrong?
thank you in advance!

回答 (1 件)

Sam Chak
Sam Chak 2022 年 4 月 9 日
編集済み: Sam Chak 2022 年 4 月 9 日

0 投票

Generally, there should be at least three termination conditions (stopping criteria):
  1. Stop when maximum number of generations (iterations) is reached.
  2. Stop when the function tolerance is reached.
  3. Stop when the step tolerance is reached.
Please check the algorithm again.

3 件のコメント

Azime Beyza Ari
Azime Beyza Ari 2022 年 4 月 9 日
編集済み: Azime Beyza Ari 2022 年 4 月 9 日
thank you for your answer!
I have checked it and added tolerance(only that was missing). But still have the same problem.
here is a screenshot of what it says.
It does no go any further from this. I dont think it even iterates
Sam Chak
Sam Chak 2022 年 4 月 9 日
Hmm... Can you check if the initial guesses are causing the function to approach a singularity?
Azime Beyza Ari
Azime Beyza Ari 2022 年 4 月 9 日
Sorry to bother you with this but i am new to matlab. How can i check for initial guesses? Or if you can have a look into my file that would be amazing.
i will ttch the file!

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

カテゴリ

製品

リリース

R2022a

質問済み:

2022 年 4 月 9 日

コメント済み:

2022 年 4 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by