Livoa LogoLivoa
Start
Initialize population of soldiers (candidate solutions)
Evaluate fitness of each soldier
Identify King (best solution) and Commander (second-best)

Max iterations or convergence?

Yes

Output King as final solution

No

For each soldier in population:


• Apply ATTACK strategy (move toward King/Commander)

• Apply DEFENSE strategy (small adjustment, preserve good area)

• Apply DEFECTIVE strategy (explore new/random directions)

• Apply REINFORCEMENT strategy (introduce new/random soldiers)

Update positions of soldiers

Recalculate fitness of new positions

Update King and Commander (best two solutions)

End

sfsf

by sezor

0
0 uses