ok I tried to design a search gene but for some reason it does not work were is the mistake?
cond
*.eye4 *.eye5 > or
*.eye3 *.eye5 > or
*.eye2 *.eye5 > or
*.eye1 *.eye5 > or
*.eye6 *.eye5 > or
*.eye7 *.eye5 > or
*.eye8 *.eye5 > or
*.eye9 *.eye5 >
start
*.eye1 3 mult *.eye2 4 mult add *.eye3 5 mult add *.eye4 6 mult add 10 div
*.eye9 -3 mult *.eye8 -4 mult add *.eye7 -5 mult add *.eye6 -6 mult add 10 div
add .aimsx store
stop
end
so what it should do, if any target is nearer then the target in front it should
rotate based on the attractivity of the side. I weighted the values to calculate attractivity.
Well in any case the rotation is to weak , but the real problem is it only rotates correctly clockwise never anticlockwise.