GA algorithm toolbox (define constraint)
Mostrar comentarios más antiguos
Hi
I have objective function with 5 variable which I have implemented in the genetic algorithm to optimize it .
I have trouble defining its constraint in the genetic algorithm.
The constraint I want to define:
- X1 & x2 & x4 is integer
- If I assume a is integer
- Then x1=A*x4 & x1=A*x5
- X2=A*x4 & X2=A*X5
Can someone guide me to define this constraint to GA toolbox matlba?
1 comentario
Walter Roberson
el 25 de Sept. de 2020
Your constraints require x4 = x5 but x5 is not constrained to be integer.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Genetic Algorithm en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!