This application uses a genetic algorithm to determine a selection of foods that results in near-optimal nutrition across a one-week period.