Dear Dr. Balda,
I've been trying to implement your code to a calibration problem I have with many variables. 9 fixed and one more for each measurement. I believe it is for this reason that your function has not been giving me consistent results and I end up iterating more than 1000 times. I already defined the funtions I want to minimize(the residuals) but I would like to add a restriction to some of the variables. The restriction would be something like I don't want to allow the absolut value of some of the x's to be greater than 30. How would you go about that?
Hi Sam, thank you for the toolbox! I have tried to modify the code in order to get a multiobjective optimizer, by means of a adaptive weighted sum approach for the fitness. How can I write the code, in order to write out the Pareto points? I wrote for each generation k
% if trypareto
But it does not work well as it writes out equal points.Does anyone have any suggestion? thank you all.
hi, Sam. I am right now using PSO as a tool to minimize my fitness function. Actually i am using binary coding for the fitness function which i have already run it with GA previously, and it works fine. However, when i am using your binary PSO to calculate the same function, it best value in each generation is like random values, no patterns like gradually going down or at least sign of minimizing. I am wondering why is this happening. The binary coding fine for my case, cause it work well in GA. Will you be so kind to answer me this question, or i will post the details if you need to fix my trouble. Hope to get your reply soon.
I think I found a crucial bug (version 20130702): in my program I write down the test parameters if they fit better than in the iterations before. In my test PSO stopped after fulfilling a break condition and gave me a final parameter set, which fitted less than an intermediate result I wrote down before.
Aman Parkash, what have you defined for Aineq and bineq? Aineq must have the same number of rows as bineq.
agus mujianto, I did not design my code to run in a Simulink environment, but I have heard from other users who have tried it with success. Your question pertains to aspects of the Simulink model that you are working with, which is not part of my toolbox. Unfortunately I will not be able to provide you with technical support for something that I did not create. I hope you find your answer soon!