GA algorithm toolbox (define constraint)
Afficher commentaires plus anciens
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 commentaire
Walter Roberson
le 25 Sep 2020
Your constraints require x4 = x5 but x5 is not constrained to be integer.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Genetic Algorithm dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!