A computer program for the optimization of the masses and the irradiation, waiting, and counting time of a multicomponent activation detector is reported. The program, which has provisions for taking into account many different kinds of irradiation environments, is coded in FORTRAN-5 for a Nova-2 minicomputer.