I've been working on converting PSO algorithm in metaheuristicOpt package from R to Python. I've finished converting it exactly the same from the original R version but when i tried to run both of them, it's shows very different result. I don't know what else to do because the code is exactly the same.
here is the converted source code : https://github.com/ilhaaamn/dna-barcoding/blob/master/dna-barcoding.py
please help Thanks!