Writing Penality function in GA

조회 수: 3 (최근 30일)
Saifullah Khalid
Saifullah Khalid 2017년 8월 3일
편집: Saifullah Khalid 2017년 8월 3일
I am trying to solve a constrained optimization problem with two objectives using GA. The objective function and constraints are as follow:
min f1(x1, x2) & max f2(x1, x2)
subject to:
a*x1-b*x2 < 0 where a and b are constants
sum (x1)= 1
I want to use penalty function approach to solve this problem but I am not sure how to write and apply penalty function to both objectives. I would appreciate any help on this issue.

답변 (1개)

Sebastian Castro
Sebastian Castro 2017년 8월 3일
You can use the gamultiobj function to pass in both your penalty functions separately.
- Sebastian
  댓글 수: 1
Saifullah Khalid
Saifullah Khalid 2017년 8월 3일
Thanks, Sebastian Castro, Sorry I did not write requirement in question. Actually I am not clear how to write penalty function for this problem.

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

카테고리

Help CenterFile Exchange에서 Multiobjective Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by