Sir how to write objective function for this in particle swarm optimization algorthim
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Thangavinothini R
le 30 Mai 2020
Commenté : Alan Weiss
le 3 Juin 2020
How to write the code for this objective function
0 commentaires
Réponse acceptée
Alan Weiss
le 1 Juin 2020
I suppose that you know how to write code to calculate and . I suppose that you know how to write code to calculate the sum multiplied by . To maximize, you minimize the negative of that sum, as explained in Maximizing an Objective.
If you need more help, feel free to ask.
Alan Weiss
MATLAB mathematical toolbox documentation
3 commentaires
Alan Weiss
le 3 Juin 2020
If you have a vector v = [v(1),...,v(n)] then the sum is y = sum(v). Or is there something else that you meant?
Alan Weiss
MATLAB mathematical toolbox documentation
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!