lingo程序,总提示不对,麻烦大家给看看,急死了! N8=@sum(link1(i,j):x(i)*a(i)*d(i,j)*f(j)*y(j));
model:sets:Hi/1..22/:a,o,p,q,r,s,t,u,x;Hj/1..22/:c;link1(Hi,Hj):d,g;e/1/;link2(e,Hj):...
model:
sets:
Hi/1..22/:a,o,p,q,r,s,t,u,x;
Hj/1..22/:c;
link1(Hi,Hj):d,g;
e/1/;
link2(e,Hj):f,y;
endsets
enddata
max=5.11*@sqrt(N8)/N1+4.47*@sqrt(N8)/N2+5.54*@sqrt(N8)/N3+4.22*@sqrt(N8)/N4+2.78*@sqrt(N8)/N5+5.57*@sqrt(N8)/N6+10.11*@sqrt(N8)/N7;
N1=2.32*1.11*@sum(link1(i,j):a(i)*o(i)*x(i));
N2=2.32*0.927*@sum(link1(i,j):a(i)*p(i)*x(i));
N3=2.32*2.152*@sum(link1(i,j):a(i)*q(i)*x(i));
N4=2.32*1.779*@sum(link1(i,j):a(i)*r(i)*x(i));
N5=2.32*2.295*@sum(link1(i,j):a(i)*s(i)*x(i));
N6=2.32*4.135*@sum(link1(i,j):a(i)*t(i)*x(i));
N7=2.32*14.895*@sum(link1(i,j):a(i)*u(i)*x(i));
N8=@sum(link1(i,j):x(i)*a(i)*d(i,j)*f(j)*y(j));
N1+N2+N3+N4+N5+N6+N7<=120*@sqrt(N8);
x16+x17+x18+x19+x20+x21+x22=5;
其实就是想表达一个矩阵乘对角阵乘矩阵乘对角阵乘转置,应该怎么写啊,奖励多少都可以,解决了加微信发红包,多谢了
就是如何写出x(i)*a(i)*d(i,j)*f(j)*y(j),会的人应该不难啊 展开
sets:
Hi/1..22/:a,o,p,q,r,s,t,u,x;
Hj/1..22/:c;
link1(Hi,Hj):d,g;
e/1/;
link2(e,Hj):f,y;
endsets
enddata
max=5.11*@sqrt(N8)/N1+4.47*@sqrt(N8)/N2+5.54*@sqrt(N8)/N3+4.22*@sqrt(N8)/N4+2.78*@sqrt(N8)/N5+5.57*@sqrt(N8)/N6+10.11*@sqrt(N8)/N7;
N1=2.32*1.11*@sum(link1(i,j):a(i)*o(i)*x(i));
N2=2.32*0.927*@sum(link1(i,j):a(i)*p(i)*x(i));
N3=2.32*2.152*@sum(link1(i,j):a(i)*q(i)*x(i));
N4=2.32*1.779*@sum(link1(i,j):a(i)*r(i)*x(i));
N5=2.32*2.295*@sum(link1(i,j):a(i)*s(i)*x(i));
N6=2.32*4.135*@sum(link1(i,j):a(i)*t(i)*x(i));
N7=2.32*14.895*@sum(link1(i,j):a(i)*u(i)*x(i));
N8=@sum(link1(i,j):x(i)*a(i)*d(i,j)*f(j)*y(j));
N1+N2+N3+N4+N5+N6+N7<=120*@sqrt(N8);
x16+x17+x18+x19+x20+x21+x22=5;
其实就是想表达一个矩阵乘对角阵乘矩阵乘对角阵乘转置,应该怎么写啊,奖励多少都可以,解决了加微信发红包,多谢了
就是如何写出x(i)*a(i)*d(i,j)*f(j)*y(j),会的人应该不难啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询