A modified version of PSO algorithm which can be used to search the minimum value inside a specified range. Using f1s.m to test the function!