Title: An optimal technique for the allocation of funds in R & D programs