求大神解释lingo中简答代码的意思
代码如下,求解答,谢谢min=@sum(roads:w*x);@for(cities(i)|i#ne#1#and#i#ne#n:@sum(roads(i,j):x(i,j...
代码如下,求解答,谢谢
min = @ sum(roads:w*x);
@ for(cities(i)|i#ne#1#and#i#ne#n:
@ sum(roads(i,j):x(i,j))=@ sum(roads(j,i):x(j,i)));
@ sum(roads(i,j)|i#eq#1:x(i,j))=1;
@ sum(roads(i,j)|j#eq#n:x(i,j))=1; 展开
min = @ sum(roads:w*x);
@ for(cities(i)|i#ne#1#and#i#ne#n:
@ sum(roads(i,j):x(i,j))=@ sum(roads(j,i):x(j,i)));
@ sum(roads(i,j)|i#eq#1:x(i,j))=1;
@ sum(roads(i,j)|j#eq#n:x(i,j))=1; 展开
2个回答
展开全部
@for(row(i):@sum(col(j):a(i,j)*x(j))>=b(i));
这句是满足需求
@for(col:@bin(x));
@sum(col:x)=4; 这两句是选择4个点
min=@sum(juli(i,j):x(i)*x(j)*c(i,j));
这句是满足需求
@for(col:@bin(x));
@sum(col:x)=4; 这两句是选择4个点
min=@sum(juli(i,j):x(i)*x(j)*c(i,j));
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
 50 求大神解释lingo中简答代码的意思
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询