teeline · algorithms/fpa
Flower Pollination Algorithm
A population of candidate tours (flowers) evolves each step: with probability p a flower makes a long-range Lévy flight toward the global best; otherwise it cross-pollinates with two random flowers nearby. Drag the sliders to see how p and population size shape search.
Flowers
01992
11891
22152
32291
41995
51995
61920
71769
● gbest tour● active flower● population● city▌ active flower▌ global best
Press Step or Run to begin
■ global Lévy step ■ local ε step
step size
—
iteration
0
gbest distance
1768.5
global steps
0
local steps
0
~80% global / 20% local
Balanced population size