作业帮 > 综合 > 作业

LINGO出现问题1017

来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/11 04:03:01
LINGO出现问题1017
sets:
\x05department/A,B,C,D,E/;
\x05city/1,2,3/;
\x05benefit(department,city):B,x;
\x05dist(city,city):C;
\x05comm(department,department):D;
\x05matrix(department,city,department,city);
endsets
max=10000*@sum(benefit(i,j):B(i,j)*x(i,j))
-@sum(matrix(i,j,k,l)|i#lt#k:
C(j,l)*D(i,k)*x(i,j)*x(k,l));
@for(department(i):@sum(city(j):x(i,j))=1);
@for(city(j):@sum(department(i):x(i,j))
LINGO出现问题1017
数据部分的定义有问题,“B”应该是一个5*3的矩阵,你这只有12个数据.