Computer optimization of class solutions designed on a beam segmentation basis