Writing fitness function in multi objective GA

조회 수: 2(최근 30일)
Hari
Hari 2022년 5월 25일
답변: M Mirrashid 2022년 6월 5일
If I need to go for a multi objective optimisation in GA, how can I bring in the two objectives in a custom made fitness function. Can someone explain in the context of the travelling salesman problem described here : https://in.mathworks.com/help/gads/custom-data-type-optimization-using-ga.html

채택된 답변

Walter Roberson
Walter Roberson 2022년 5월 25일
mobj = @(x) [fun1(x); fun2(x) ]
  댓글 수: 7
Hari
Hari 2022년 6월 4일
Yes, I tried again. The second approach worked this time. Thanks!!

댓글을 달려면 로그인하십시오.

추가 답변(1개)

M Mirrashid
M Mirrashid 2022년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by