An algorithm for design of beam compensators.

Beam compensators are optimally designed to give a uniform dose to any plane or midsurface that intersects a single beam, or to give a uniform dose to the volume defined by the intersection of two or more beams. The primary and scatter components are taken into account separately, as well as the patient's shape and internal heterogeneities. The design of the beam compensators is formulated as a linear programming problem and solved with a variation of the Simplex Method. Beam weighting factors are also obtained as part of the solution.