Does the initial population matrix have to satisfy constraints genetic algorithm matlab
조회 수: 1 (최근 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
댓글 수: 0
답변 (2개)
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
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
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.
댓글 수: 0
참고 항목
카테고리
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!