=in(,1);%y=in(,2);termsum二0;x=in(:,1);y=in(:,1);a(l}=[...-32-1601632;•-32-1601632-32-1601632-32-1601632-32•9-1601632•…-32-32-32-32-32]a{2}=[-16-16-16-16-160000016161616163232323232];termsum二0;forj=l:numel((a{1}))ax=a{l}(j);ay=a{2)(j);term_sum=(x-ax)."6+(y-ay).6;term_suni=tcrm_sum+1.0/(j+torm_suni);endout=.002+termsum;运行结果如下:两数的全局最优位置为:Solution=31.9995033209264196.742047876319869-4.28812078367820514.91807014291851313.732644871242318最后得到的优化极值为:Result=0.042000000000000-16-16-16-16-160000016161616163232323232];termsum二0;forj=l:numel((a{1}))ax=a{l}(j);ay=a{2)(j);term_sum=(x-ax)."6+(y-ay).6;term_suni=tcrm_sum+1.0/(j+torm_suni);endout=.002+termsum;运行结果如下:两数的全局最优位置为:Solution=31.9995033209264196.742047876319869-4.28812078367820514.91807014291851313.732644871242318最后得到的优化极值为:Result=0.042000000000000