作业帮 > 数学 > 作业

lingo错误分析:csets:a/23..46/:m,n; endsets @sum(a(i):n(i))=4;

来源:学生作业帮 编辑:大师作文网作业帮 分类:数学作业 时间:2024/11/12 10:48:32
lingo错误分析:csets:a/23..46/:m,n; endsets @sum(a(i):n(i))=4;
sets:
a/23..46/:m,n;
endsets
@sum(a(i):n(i))=4;
@sum(a(i):m(i))=5;
@sum(a(i):m(i)*n(i)*(3+(i-1)*0.5)=89;
@for(a(i):@gin(m(i)));
@for(a(i):@bin(n(i)));
end
错误1017
请帮忙分析错误
lingo错误分析:csets:a/23..46/:m,n; endsets @sum(a(i):n(i))=4;
集编号都是从1开始的
sets:
a/1..24/:m,n;
endsets
@sum(a(i):n(i))=4;
@sum(a(i):m(i))=5;
@sum(a(i):m(i)*n(i)*(3+(22+i-1)*0.5))=89;
@for(a(i):@gin(m(i)));
@for(a(i):@bin(n(i)));
end