find the maximum of function sin(x+Y^2) with ACO (ant colony algorithm)
8 views (last 30 days)
Show older comments
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 Comments
Walter Roberson
on 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.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!