Writing Penality function in GA

3 visualizaciones (últimos 30 días)
Saifullah Khalid
Saifullah Khalid el 3 de Ag. de 2017
Editada: Saifullah Khalid el 3 de Ag. de 2017
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.

Respuestas (1)

Sebastian Castro
Sebastian Castro el 3 de Ag. de 2017
You can use the gamultiobj function to pass in both your penalty functions separately.
- Sebastian
  1 comentario
Saifullah Khalid
Saifullah Khalid el 3 de Ag. de 2017
Thanks, Sebastian Castro, Sorry I did not write requirement in question. Actually I am not clear how to write penalty function for this problem.

Iniciar sesión para comentar.

Categorías

Más información sobre Multiobjective Optimization en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by