How to use PSO (Particle swarm optimization) to optimize objective function containing two terms one of them kmeans clustering?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
M.Shaarawy
el 18 de En. de 2019
Comentada: M.Shaarawy
el 22 de En. de 2019
Hi
I used PSO before to optimize an objective function.Now I have an objective(fitness) function containing two terms; one of them described by k-means clustering ..Euclidean distance?
0 comentarios
Respuesta aceptada
Walter Roberson
el 19 de En. de 2019
You have to pass a function handle as the objective function, but it does not have to be an anonymous function. You can pass the handle to a function that does extensive computation based on the inputs. The only requirement is that the output has to be a scalar.
If you are trying to minimize two distinct things simultaneously then you either need to decide their relative weighting to combine them into a scalar, or else you need to use gamultiobj() to find pareto fronts.
14 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Particle Swarm en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!