ga is stopping after 1 or 2 iterations only

3 ビュー (過去 30 日間)
Elie Hatem
Elie Hatem 2021 年 5 月 19 日
コメント済み: Elie Hatem 2021 年 5 月 19 日
Hello,
I am trying to create a flipping trajectory for a drone by using the ga solver. I set all my constraints and bounds for the problem.
The trajectory is separated into 3 different phases, and there are 9 parameters to be optimized in total:
1 - Height at the beginning of the trajectory.
2 - Height at the end of the first phase (the reaching phase).
3 - Height at the end of the second phase (the flipping phase).
4 - Height at the end of the third phase (the recovery phase).
5 - The roll angle at the beginning of the second phase (the flipping phase).
6 - The roll angle at the end of the second phase (the flipping phase).
7 - The time t1 required for the trajectory of the first phase (the reaching phase).
8 - The time t2 required for the trajectory of the second phase (the flipping phase).
9 - The time t3 required for the trajectory of the third phase (the recovery phase).
The objective function to be minimzed is the total time to do the trajectory (t1+t2+t3).
However, when ga tries to solve the problem, it just stops after 1 or 2 iterations and the output variable message is that no feasible solution was found.
Can someone help me? I am not sure what I am doing wrong.
The code is a bit large to post here so I will share a github link.
The main script is called ga_main.m
I also attached the code above in a zip file for your convenience.
Thanks in advance.

回答 (1 件)

Alex Alex
Alex Alex 2021 年 5 月 19 日
may be more iterations?
  1 件のコメント
Elie Hatem
Elie Hatem 2021 年 5 月 19 日
Thank for your response. Yeah I tried it by setting iter = 50. So I solved the problem 50 times.
And, each time, the ga solver either stopped after 1 or 2 iterations.

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

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by