フィルターのクリア

Does the initial population matrix have to satisfy constraints genetic algorithm matlab

5 ビュー (過去 30 日間)
Is it possible to give MATLAB an initial population matrix which does not satisfy the constraints?
Will MATLAB be able to automatically weed out the childs which do not satisfy the constraints?
Thanks

回答 (2 件)

Star Strider
Star Strider 2022 年 7 月 28 日
The initial population matrix does not have to satisfy the constraints.
Subsequent generations will, at least in my experience.
  2 件のコメント
Sravan Kumar Kanchari Bavajigari
Sravan Kumar Kanchari Bavajigari 2022 年 7 月 28 日
Thanks for the response
Does that mean that MATLAB does not check if the initial population given by the user satisfies the constraints or not?
If it is not checking, is the initial population matrix I provide used as is to compute the objective function?
Star Strider
Star Strider 2022 年 7 月 28 日
My pleasure!
I am not certain that it checks initially, however in my experience, the entire matrix conforms to the constraints after the first iteration. I have not examined the code (assuming that is even possible) to determine if it checks before the first iteration.

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


Matt J
Matt J 2022 年 7 月 28 日
編集済み: Matt J 2022 年 7 月 28 日
Will MATLAB be able to automatically weed out the childs which do not satisfy the constraints?
GA satisfies inequality and nonlinear constraints asymptotically. GA makes neither assumptions nor guarantees that the population members at any one generation will satisfy them.
Pure bounds are different. I believe ga will weed-out initial population members outside the bounds and produce children that satisfy them.
You can check all these things yourself by using a custom Output Function to retrieve the population matrix at the successive generations.

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by