On the Optimization Models for Automatic Grouping of Industrial Products by Homogeneous Production Batches