I have tried the above by using a for loop and switch case for two regions like 100-200 one and 220-400 the other .I have changed the VR used in PSO_trealeavectorized algorithm with the above ranges as for case1:VR=100-200 and for Case2:VR=220-400 and I have found the min of these as is my requirement.I had got the answer but stil the time taken was a lot more ,I want to decrease the time taken Kindly suggest me any other better method to do this
Best Answer