A genetic algorithm for optimizing a purchase of many items from many potential sellers, including a minimum purchase price from each seller.