初学lingo,还望哪位高手帮忙看下程序语法是否有误?急,急,急~~~
sets:center/1..100/:y;link(center,center):Z,R,D;endsetsdata:R=!100*100的矩阵D=!100*100的矩...
sets:
center/1..100/:y;
link(center,center):Z,R,D;
endsets
data:
R= !100*100的矩阵
D= !100*100的矩阵
enddata
min=@sum(center(i):@sum(center(j)|i #ne# j:y(i)*y(j)*(@sum(center(k)|i #ne# k:Z(i,k)*R(i,k))+R(i,j)+(@sum(center(k)|j #ne# k:Z(j,k)*R(j,k))))*D(i,j)*x))+@sum(center(i):@sum(center(j)|i #ne# j:y(i)*(y #ne# 0)*Z(i,j)*D(i,j)*R(i,j)));
@sum(center(i):y(i))=100;
@for(center(i):
@for(link(i,j):Z(i,j) <= y(i));
@for(center:@bin(y));
@for(link:@bin(Z));
@bnd(0.2,x,0.8);
@for(center(j):@sum(center(i):Z(i,j))=1);
end 展开
center/1..100/:y;
link(center,center):Z,R,D;
endsets
data:
R= !100*100的矩阵
D= !100*100的矩阵
enddata
min=@sum(center(i):@sum(center(j)|i #ne# j:y(i)*y(j)*(@sum(center(k)|i #ne# k:Z(i,k)*R(i,k))+R(i,j)+(@sum(center(k)|j #ne# k:Z(j,k)*R(j,k))))*D(i,j)*x))+@sum(center(i):@sum(center(j)|i #ne# j:y(i)*(y #ne# 0)*Z(i,j)*D(i,j)*R(i,j)));
@sum(center(i):y(i))=100;
@for(center(i):
@for(link(i,j):Z(i,j) <= y(i));
@for(center:@bin(y));
@for(link:@bin(Z));
@bnd(0.2,x,0.8);
@for(center(j):@sum(center(i):Z(i,j))=1);
end 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询