Costs associated with isotope production are minimized using Pontryagin's Maximum Principle. This method is combined with a technique to maximize the amount of a specific radioisotope compared with the total amount of a group of radiosiotopes by selecting proper irradiation and decay times. Results of several examples are given.