find the maximum of function sin(x+Y^2) with ACO (ant colony algorithm)
Afficher commentaires plus anciens
I want to solve to find the maximum of function sin(x+Y^2) where x between [0 360] and y between[0 18] with ACO (ant colony algorithm) I dont know how to define function I get TSP program but I dont know how to change it
2 commentaires
Walter Roberson
le 19 Nov 2015
Are you sure? 0 to 360 looks suspiciously like degrees, but sin() is a call that works in radians.
The maximum of sin() is 1.0 which would clearly be reached at X = 90 degrees (Pi/2 radians) and Y = 0, so it would seem pointless to run the optimization. Besides, there are an infinite number of solutions in that range.
Ali ebrahimi
le 20 Nov 2015
Réponses (0)
Catégories
En savoir plus sur Solver-Based Linear Programming 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!