Hey, I am experiencing the following when using PSO, My upper and lower bound are positive but I am getting negative values for the swarm, what may be the problem?
By mentioning 'swarm' I assume that you are talking about the input variables. Kindly check if a condition is mentioned in your code which forces the variable to take upper bound or lower bound value if they exceed the specified upper or lower bound respectively.
Hey Abhinav, thank you for your response. I am generating a swarm in PSO, my upper bound is positive and my lower bound is zero. I multiply my upper bound value by random numbers between 1 and zero. I do not understand how some turn out to be negative
To comment exactly what is wrong with your methodology, I need to see the problem and its code. But As mentioned by Dr. Ibraheem, you look at the example mentioned by Rao in Engineering Optimization book. You solve same example through your PSO implementation step by step. Hopefully you may discover what exactly is wrong in your implementation.
Hey Ibraheem, I am Trying.Actually, I have used all the values mentioned in the book. Maybe you give me your email I forward the whole code. I am doing load flow using BFSM. Since I am using using IEEE 33 bus test system, I do not know whether the issue is from placing the DG at a particular bus wrongly.