How to design a singlet lens, Part 3: Optimization