Professional Documents
Culture Documents
13 Oct 2018
Okay.
Thank you very much!
I. Berkan Aydilek
13 Oct 2018
There is no problem
this if will run in 3.iteration after g_best_val_t is set
.....
for i=1:iter
.....
if (i>2) && (f_val(j,1)<=g_best_val_t(i-2,:))
.......
Mars
13 Oct 2018
Hi Berkan,
For example:
for j=1:swarm_size
I. Berkan Aydilek
12 Oct 2018
Hi Mars, Please send your codes folder (zip) to my e-mail berkanaydilek[at]harran.edu.tr, i will
check it and what is your matlab version, i use 2018a now and i have no problem.
1. download http://web.mysites.ntu.edu.sg/epnsugan/PublicSite/Shared%20Documents/CEC-
2017/Bound-Constrained/codes.rar
2. extract it we use matlab folder in this codes.rar
3. put "A hybrid firefly and particle swarm optimization algorithm (HFPSO) codes" inside this
matlab folder
4. run main.m file
thanks
Mars
12 Oct 2018
Hi Berkan,
Thanks for your sharing.
However, there are many errors when I run this code.
Please correct it and re-publish it again.
Thanks!
I. Berkan Aydilek
6 Oct 2018
Hello Ravi, i think you use lower band(LB) or Upper band(UB) dimension wrong below trial
code must be run
particles_x=-100'+rand(30,30).*(100-(-100))'
and dont forget to downlaod benchmark_func2017
http://web.mysites.ntu.edu.sg/epnsugan/PublicSite/Shared%20Documents/CEC-2017/Bound-
Constrained/codes.rar and extract same folder
5 Oct 2018
When i run this code i got this errors can anyone help to resolve this.
Error using .*
Matrix dimensions must agree.
David Franco
21 Sep 2018