- Stop when maximum number of generations (iterations) is reached.
- Stop when the function tolerance is reached.
- Stop when the step tolerance is reached.
Script run takes too much time
조회 수: 1 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (1개)
Sam Chak
2022년 4월 9일
편집: Sam Chak
2022년 4월 9일
Generally, there should be at least three termination conditions (stopping criteria):
Please check the algorithm again.
댓글 수: 3
Sam Chak
2022년 4월 9일
Hmm... Can you check if the initial guesses are causing the function to approach a singularity?
참고 항목
카테고리
Help Center 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!