LINGO问题.这个LINGO的为什么运行不了.关键是S(i,1)=0,和s(i,7)=0..model:sets:si/1..6/;sj/1..7/;st/1..5/:l;sij(si,sj):c,x,s;stj(st,sj):a;sit(si,st):k;endsetsmin=@sum(sij(i,j):c(i,j)*x(i,j));@for(sj(j):@for(si(i)|i#le#5:s(i+1,j)=s(i,j)+x(i

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 23:55:24
LINGO问题.这个LINGO的为什么运行不了.关键是S(i,1)=0,和s(i,7)=0..model:sets:si/1..6/;sj/1..7/;st/1..5/:l;sij(si,sj):c,

LINGO问题.这个LINGO的为什么运行不了.关键是S(i,1)=0,和s(i,7)=0..model:sets:si/1..6/;sj/1..7/;st/1..5/:l;sij(si,sj):c,x,s;stj(st,sj):a;sit(si,st):k;endsetsmin=@sum(sij(i,j):c(i,j)*x(i,j));@for(sj(j):@for(si(i)|i#le#5:s(i+1,j)=s(i,j)+x(i
LINGO问题.这个LINGO的为什么运行不了.关键是S(i,1)=0,和s(i,7)=0..
model:
sets:
si/1..6/;
sj/1..7/;
st/1..5/:l;
sij(si,sj):c,x,s;
stj(st,sj):a;
sit(si,st):k;
endsets
min=@sum(sij(i,j):c(i,j)*x(i,j));
@for(sj(j):@for(si(i)|i#le#5:s(i+1,j)=s(i,j)+x(i,j)));
@for(st(t):@for(si(i):@sum(sj(j):a(t,j))=0);
@for(sit(i,t):@GIN(k(i,t)));
@for(sij(i,j):s(i,j)>=10);
@for(sij(i,j):s(i,j)

LINGO问题.这个LINGO的为什么运行不了.关键是S(i,1)=0,和s(i,7)=0..model:sets:si/1..6/;sj/1..7/;st/1..5/:l;sij(si,sj):c,x,s;stj(st,sj):a;sit(si,st):k;endsetsmin=@sum(sij(i,j):c(i,j)*x(i,j));@for(sj(j):@for(si(i)|i#le#5:s(i+1,j)=s(i,j)+x(i
找不到可行解,请自行检查模型
model:
sets:
si/1..6/;
sj/1..7/;
st/1..5/:l;
sij(si,sj):c,x,s;
stj(st,sj):a;
sit(si,st):k;
endsets
min=@sum(sij(i,j):c(i,j)*x(i,j));
@for(sj(j):@for(si(i)|i#le#5:s(i+1,j)=s(i,j)+x(i,j)));
@for(st(t):@for(si(i):@sum(sj(j):a(t,j))=0);
@for(sit(i,t):@GIN(k(i,t)));
@for(sij(i,j):s(i,j)>=10);
@for(sij(i,j):s(i,j)