Assignment 01
Assignment 01
% Start iterations
for i = 1:Num_iterations
% Show the contour of the function
contour(x, y, z, 15); hold on;
With α = 0.1 and β = 0.2, the APSO algorithm will likely be slow and explore a lot of different
areas. The particles will only make small moves and won't be strongly drawn to the best
solution they find. This might make them get stuck and not change much. However, this slower
way of searching could help them look at many different parts of the space, which might lead
them to find the best solution instead of getting stuck in a less good one.
Results: