The classes describing essential elements of the process of feed preparation and distribution in piggeries are presented. They contain the information on production specialities, herd structure, feeding rules, machines and equipment used for labour mechanization, conditions limiting the choice of optimum solution. An algorithm for selecting equipment depending on various criteria was described; the goal function may deal with minimizing energy input, labour input, task realization time, equipment investment costs or maximizing the profit. The algorithm was proprammed in PASCAL 6.0 language for IBM PC/AT computer. Fast complex solutions of technical equipment for piggeries may be easy obtained by using presented method. Data base design enables the reconstruction of given technology without necessity of putting all technological options in the computer. Method was satisfactory verified by the correctness of obtained solutions.