Help !! How to use Genetic Algorithm for maximisation process as it is used for minimisation process?
Afficher commentaires plus anciens
How to use Genetic Algorithm for maximisation process as it is used for minimisation process?
There are those who tell you other than the sign equation
but I can't change it cos it is an equation preserved by neural networks
This work improves the linear actuator so that it is sandwiched between LB and LU
I want the most value for ' y '
please help me
fitness=@fen;
nvars=2; % Number of variables
LB=[... ...]; %LB Lower bound on x
UB=[... ...]; %UB Upper bound on x
[x,y] = ga(fitness,nvars,[],[],[],[],LB,UB)
Réponse acceptée
Plus de réponses (1)
Gifari Zulkarnaen
le 28 Août 2020
1 vote
Make the fitness function to be 1/f(x) where f(x) is your original maximization.
1 commentaire
ad aymen
le 28 Août 2020
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!