problem 1: maximizing an objective function with a genetic algorithm suppose we've lost the index card with our favorite cupcake recipe. we know the ingredients of the cake, but cannot remember the exact amount of each ingredient. we decide to use a genetic algorithm to generate the ingredient amounts. with each iteration of the genetic algorithm, we bake the cupcakes and taste-test them. we achieve our goal and stop running the genetic algorithm when we get to the actual recipe: 1 tsp salt 3 tsp baking powder 2 cups all-purpose flour 1 cup butter 1 cup granulated sugar 4 large eggs 1 tsp vanilla extract 1 cup buttermilk