An interactive system has been developed to aid in determining optimal photon and electron beams and beam weights for radiotherapy treatment planning. Dose constraints at various points are selected and an algorithm searches for a set of beams and weighting factors that satisfy these constraints. In the event that no combination of beam weights satisfies the choice of treatment modalities and dose constraints, the treatment modalities and dose constraints can be modified interactively. The goal of this procedure is different from that of more conventional optimization schemes in which optimal dose values are specified and the optimization algorithm determines the set of beam weights that yields a dose distribution closest to optimal.