EVOLVE
(defun evolve (ngenerations nmutations ncrossovers)
"Runs the genetic algorithm for NGENERATIONS times."
(setf *population* *initial-population*)
(dotimes (i ngenerations)
(let ((mutated-one (mutate (random-individual))))
(add-individual mutated-one) ) )
(let* ((individual1 (random-individual))
(another-individual individual1) )
(add-individual crossing-result) ) )
(format t "~%In generation ~D, population is: ~S.~%"