lingo程序运行错误
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/10 20:33:58
lingo程序运行错误
model:
sets:
bed/bed1..bed7/;
lebe/leb1..leb3/;
operation/ope1..ope45/;
links(lebe,operation):t,ta;
llinks(lebe,operation,bed):x;
endsets
min=d2p;
@for(operation(m):@for(bed(k):@for(lebe(j):
@sum(links:t(m,j)*x(m,j,k))
model:
sets:
bed/bed1..bed7/;
lebe/leb1..leb3/;
operation/ope1..ope45/;
links(lebe,operation):t,ta;
llinks(lebe,operation,bed):x;
endsets
min=d2p;
@for(operation(m):@for(bed(k):@for(lebe(j):
@sum(links:t(m,j)*x(m,j,k))
集循环函数完全不对 集名后面要带上下标 @sum写了以后外面不要再对相应的集@for了 @sum已经是循环了