其他分享
首页 > 其他分享> > lingo学习

lingo学习

作者:互联网

1、基础

 

2、矩阵工厂

 

 

 

 

 

 3、工厂合并

data:
a=60,55,51,43,41,52;
d=35,37,22,32,41,32,43,38;
c=6,2,6,7,4,2,5,8
 4,9,5,3,8,5,8,2
 5,2,1,9,7,4,3,3
 7,6,7,3,9,2,7,1
 2,3,9,5,7,2,6,5
 5,5,2,2,8,1,4,3;
enddata

min=@sum(coo(i,j): c(i,j)*x(i,j));
@for(factory(i): @sum(plant(j):x(i,j))<=a(i));
@for(plant(j): @sum(factory(i):x(i,j))=d(j));

end

4、运算符

 

5、内置函数

 

 

 

 

 

 

 

标签:运算符,32,sum,43,41,学习,工厂,lingo
来源: https://www.cnblogs.com/buffaloes/p/16547461.html