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

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

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.
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?

댓글을 달려면 로그인하십시오.

답변 (0개)

질문:

2015년 11월 19일

댓글:

2015년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by