Genetic Algorithm Terminal Constraints Based on Output
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Kyle
el 6 de Mzo. de 2021
Comentada: Kyle
el 15 de Mzo. de 2021
I am trying to use GA to minimize a single variable that will satisfy two terminal contraints.
Consider the function where alpha is a constant.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/541306/image.png)
x is the single variable I am trying to minimze such that
and
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/541311/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/541316/image.png)
I'm not sure how to define my constants for the GA function considering the constraints rely on the output of GA.
0 comentarios
Respuesta aceptada
Shiva Kalyan Diwakaruni
el 9 de Mzo. de 2021
Hi,
You can define three functions , one function lets say 'fitness' function which contains the equation whose function handle need to be given to ga function and two other functions for phi(t) and h(t) which you will be calling from 'fitness' function
and you can pass the fitness function as a handle to ga function .
you can follow the below link for more information
hope it helps,
thanks.
Más respuestas (0)
Ver también
Categorías
Más información sobre Genetic Algorithm 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!