Sir how to write objective function for this in particle swarm optimization algorthim

1 visualización (últimos 30 días)
How to write the code for this objective function

Respuesta aceptada

Alan Weiss
Alan Weiss el 1 de Jun. de 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 comentarios
Thangavinothini R
Thangavinothini R el 3 de Jun. de 2020
how to write sumation objective function in matlab ...plz provide the code sir
Alan Weiss
Alan Weiss el 3 de Jun. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Productos


Versión

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by