Chaotic behavior in an algorithm to escape from poor local minima in lens design