What does PSO stand for (maybe it is Phenomenally Silly Obfuscating...acronym?)
Never use an acronym unless it is ubiquitous outside your field of expertise. Like IC, RAM, CGI, DSP, etc, which people outside of those disciplines and even quite a few people who are not even engineers may know something about these terms.
Also what is this supposed to be? swarm, 1, 1)
Off hand, I don't recognize this syntax. I assume this one is an array of some sort: objfcn([x y]).
felix965 said:
anyone can suggest me for how to convert this code to verilog code
I suggest if you want to convert the code to Verilog you first understand the algorithm you have above, then learn Verilog is not a programming language but is a Hardware Description Language, so you are designing with flip-flops (FFs), gates, and memories. Unless you know what the FF and gate circuit looks like you will have a much more difficult time describing it in Verilog and will likely end up with a Verilog program that will synthesize to really poor performing hardware. You also don't have arrays in hardware, if you want an array that means you have to design hardware that treats a memory as an array.