Low-cost, ready-to-use therapeutic foods can be designed using locally available commodities with the aid of linear programming.