Leveraging NASA's and ESA's approach to fulfilling astronauts’ nutritional needs in controlled environments in space, we have developed a genetic algorithm that selects and organizes crops and cultivation schedules to grow exactly what is needed daily.