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
Walter Roberson
2015년 11월 19일
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
2015년 11월 20일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Solver-Based Linear Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!