Genetic Algorithm Outputs (GA toolbox in matlab)

1 回表示 (過去 30 日間)
Abdullah Al Shereiqi
Abdullah Al Shereiqi 2018 年 11 月 27 日
コメント済み: Rena Berman 2018 年 11 月 28 日
Hi
I'm trying to get the best locations of Wind turbines in an area of 2000 * 2000 Mtr. with a condition of 100 Mtr. from eachothers as ecludiean distances. I tried to use the genetic algorithm (toolbox) to ge the optimal output but the results are not resonable.
Attached code, is to get the 6 bests locations as (Ax,Ay) by minizing sum(M).
I want the results as following
Ax = [ Ax(1) Ax(2) .......Ax(6)]
Ay = [ Ay(1) Ay(2) .......Ay(6)]
  2 件のコメント
Alan Weiss
Alan Weiss 2018 年 11 月 27 日
I have a hard time understanding your code.
It does not make sense to me that you generate new random numbers every time you call your objective function. And I do not understand why you generate that huge matrix particle_position, which has 100 rows, nor do I understand how that matrix relates to Ax and Ay through the deal function.
I do not see your call to ga. Nor do I understand why you think that ga is the best solver for this problem.
Alan Weiss
MATLAB mathematical toolbox documentation
Rena Berman
Rena Berman 2018 年 11 月 28 日
(Answers Dev) Restored edit.

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

回答 (1 件)

Abdullah Al Shereiqi
Abdullah Al Shereiqi 2018 年 11 月 28 日
編集済み: Rena Berman 2018 年 11 月 28 日
Thanks for your comments.
Please be patient with me, I'm beginner in using Matlab.
Attached on what I want to do. Is there other way to do this optimization?
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 11 月 28 日
how is best position defined?
Rena Berman
Rena Berman 2018 年 11 月 28 日
(Answers Dev) Restored edit.

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

カテゴリ

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