Diet optimization with a nutrient or toxin constraint.