Intelligent Formula System of Oil Chicken Feed Based on Optimization Algorithm
-
摘要:
针对油鸡养殖饲料配方软件复杂不实用的问题,设计与开发了基于最优化算法配比寻优的油鸡饲料智能配方系统,实现饲料和营养标准的管理,同时具备饲料配方比例寻优功能。使用JAVA语言编写操作软件,运用Python编写内置寻优算法。系统具备原料管理、营养标准管理、历史饲料配方管理等功能,选择寻优效果较好的修正单纯形算法应用于本系统。油鸡饲料智能配方系统运行稳定,可满足用户需求。修正单纯形法配比寻优所需的平均时间为0.0310 s,准确率为100%;遗传算法计算配比寻优2 000次所需的平均时间为3.0200 s,准确率为0%。本系统成功实现了油鸡养殖过程中饲料配方相关的需求,并验证修正单纯形法在油鸡饲料配比寻优中的有效性,提高了配方计算效率。系统操作简单,便于中小养殖户使用,使先进的养殖技术融入基层养殖农户中,推动整个油鸡产业的健康可持续发展。
Abstract:Aiming at complex and impractical problem of feed formula software for oil chicken breeding, an intelligent feed formula system based on an optimization algorithm was designed to meet feed and nutrition management standard and has function of feed formula proportion optimization.Operating software was in JAVA, and the built-in optimization algorithm was in Python.The system had raw material management function, nutrition management function and historical feed formula management function.A modified simplex method was used to solve problem of feed preparation proportion.Intelligent formula system of oil chicken feed run stably and could meet need of users.Average time required for proportion optimization of modified simplex method was 0.031 s, and accuracy was 100%.Average time required for genetic algorithm to calculate proportion optimization 2 000 times was 3.020 s, and accuracy was 0%.The system successfully realized requirements related to feeding formula in process of oil chicken breeding, verified effectiveness of optimization method of oil chicken feed ratio, and improved formula calculation efficiency.The system was easy to operate and convenient for small and medium-sized farms, could integrate advanced breeding technology into grass-roots farmers and promote healthy and sustainable development of whole oil chicken industry.
-
Keywords:
- fried chicken feed /
- formulation system /
- revised simplex method /
- genetic algorithm
-
表 1 饲料营养成分占比
Table 1. Proportion of feed nutrients
属性名称 单位 属性名称 单位 鸡代谢能 MJ 钙 % 粗蛋白质 % 总磷 % 赖氨酸 % 有效磷 % 蛋氨酸+胱氨酸 % 单价 元/kg 表 2 油鸡养殖营养推荐
Table 2. Recommended nutrition for oil chicken breeding
饲料用途 养殖阶段 种用 1 w~6 w 7 w~18 w 19 w~5%产蛋 5%产蛋~43 w 44 w以后 蛋用 1 w~6 w 7 w~18 w 19 w~5%开产 5%开产~43 w 43 w~淘汰 肉用 1 w~6 w 7 w~11 w 12 w~出栏 $\begin{aligned} {\;}\\ {{\boldsymbol{x}}_{\boldsymbol{B}}}\end{aligned}\begin{array}{|c|c|}\hline {\boldsymbol{w}} & {{\boldsymbol{c}}_{\boldsymbol{B}}}{{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\rightharpoonup}$}} {\boldsymbol b} }} \\\hline {{\boldsymbol{B}}^{{\boldsymbol{ - 1}}}} & {{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\rightharpoonup}$}} {\boldsymbol b} }}\\\hline\end{array}$ xk $\begin{aligned} {\;}\\ {{\boldsymbol{x}}_{\boldsymbol{B}}}\end{aligned}\begin{array}{|c|c|}\hline {\boldsymbol{w}} & {{\boldsymbol{c}}_{\boldsymbol{B}}}{{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\rightharpoonup}$}} {\boldsymbol b} }} \\\hline {{\boldsymbol{B}}^{{\boldsymbol{ - 1}}}} & {{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\rightharpoonup}$}} {\boldsymbol b} }}\\\hline\end{array}$ $\begin{aligned} {\;}\\ \end{aligned}\begin{array}{|c|c|}\hline \\[-8pt] {z}_k - c_k \\[1.5pt]\hline \\[-8pt] {\boldsymbol y}_k \\[1.5pt]\hline\end{array}$ 表 3 油鸡饲料智能配方系统测试示例
Table 3. Test example of intelligent formula system for oil chicken feed
名称 鸡代谢能/( MJ·kg−1) 粗蛋白/% 钙/% 总磷/% 有效磷/% 蛋氨酸+胱氨酸/% 赖氨酸/% 2021年价格/(元·kg−1) 配比 玉米 13.60 8.50 0.16 0.25 0.05 0.33 0.36 2.13 0.60 小麦麸 5.69 15.70 0.11 0.92 0.32 0.55 0.63 1.42 0.15 大豆粕 10.00 44.20 0.33 0.62 0.16 1.24 2.68 2.77 0.15 豆油 35.02 0 0 0 0 0 0 8.00 0.05 石粉 0 0 38.00 0 0 0 0 0.35 0.05 营养标准 12.26 14.08 2.06 0.38 0.10 0.46 0.71 — — 配方营养含量 12.26 14.08 2.06 0.38 0.10 0.46 0.71 2.32 1.00 表 4 修正单纯形法和遗传算法测试结果
Table 4. Test results of modified simplex method and genetic algorithm
算法 准确率/% 平均计算时间/s 修正单纯形法 100 0.0310 遗传算法 0 3.0200 -
[1] 李文嘉, 孙全友, 魏凤仙, 等.饲养方式对北京油鸡生长和屠宰性能, 肉品质以及肌肉脂肪酸含量的影响[J].动物营养学报, 2019, 31(4): 1 585-1 595.LI Wenjia, SUN Quanyou, WEI Fengxian, et al.Effects of different feeding patterns on growth and slaughter performance, meat quality and muscular fatty acid content of Beijing-You Chickens[J].Chinese Journal of Animal Nutrition, 2019, 31(4): 1 585-1 595. [2] 邹剑敏.我国肉鸡遗传资源保护、评价与利用的最新进展[J].中国家禽,2019,41(3):1-5. doi: 10.16372/j.issn.1004-6364.2019.03.001 [3] 耿爱莲, 王海宏, 张帆, 等.饲粮代谢能和粗蛋白质水平对1~6周龄北京油鸡新配套系生长性能和血清生化指标的影响[J].动物营养学报, 2021, 33(8): 4 395-4 404.GENG Ailian, WANG Haihong, ZHANG Fan, et al.Effects of dietary metabolizable energy and crude protein levels on growth performance and serum biochemical indexes in Beijing You Chicken new line aged from 1 to 6 weeks[J].Chinese Journal of Animal Nutrition, 2021, 33(8): 4 395-4 404. [4] 玉华.养鸡饲料巧配比[J].农村科学实验,2014(1):35. [5] 杨莎莎.基于改进遗传算法的优化生猪饲料配方研究[D].合肥: 安徽农业大学, 2019.YANG Shasha.Optimization of pig feed formula based on improved genetic algorithm[D].Hefei: Anhui Agricultural University, 2019. [6] 刘辉.修正单纯形法与单纯形法对比分析[J].煤炭技术,2006,25(4):106-107. doi: 10.3969/j.issn.1008-8725.2006.04.055LIU Hui.Comparative analysis for the simplex method and the revised simplex method[J].Coal Technology,2006,25(4):106-107. doi: 10.3969/j.issn.1008-8725.2006.04.055 [7] 熊亚蒙.基于安卓平台的鸡饲料配方系统设计与开发[J].饲料研究,2019,42(7):121-124. doi: 10.13557/j.cnki.issn1002-2813.2019.07.033XIONG Yameng.Design and development of feed formulation system based on Android platform for chicken[J].Feed Research,2019,42(7):121-124. doi: 10.13557/j.cnki.issn1002-2813.2019.07.033 [8] 杜健.计算机在饲料企业中的应用和前景[J].中国饲料,2020,31(22):99-102. doi: 10.15906/j.cnki.cn11-2975/s.20202225DU Jian.Application and prospect of computer in feed enterprise[J].China Feed,2020,31(22):99-102. doi: 10.15906/j.cnki.cn11-2975/s.20202225 [9] 赵丹阳, 吴雨珊, 李军国, 等.饲粮添加亚麻籽和维生素E对北京油鸡肌肉n-3多不饱和脂肪酸富集和抗氧化特性的影响[J].动物营养学报, 2020, 32(11): 5 243-5 254.ZHAO Danyang, WU Yushan, LI Junguo, et al.Effects of adding flaxseed and vitamin E in diets on n-3 polyunsaturated fatty acids enrichment and antioxidant properties of muscle in beijing fatty chicken[J].Chinese Journal of Animal Nutrition, 2020, 32(11): 5 243-5 254. [10] KATOCH S, CHAUHAN S S, KUMAR V.A review on genetic algorithm: past, present, and future [J].Multimedia Tools and Applications, 2021, 80(5): 8 091-8 126. [11] LI J, LEI L.A hybrid genetic algorithm based on information entropy and game theory [J].Ieee Access, 2020(8): 36 602-36 611. [12] 陈宝林.最优化理论与算法[M].北京: 清华大学出版社, 2005: 37-84. [13] 金菊良,杨晓华,丁晶.基于实数编码的加速遗传算法[J].四川大学学报(工程科学版),2000,32(4):20-24.