find the maximum of function sin(x+Y^2) with ACO (ant colony algorithm)

8 views (last 30 days)
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
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.
Ali ebrahimi
Ali ebrahimi on 20 Nov 2015
Mr Walter Roberson I want to solve this function this is a homework and must be executed I solving this program with Genetic Algorithm and now I want to solve with ACO. the function is sind(x+Y^2). Can you help me?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!