字典翻译 问答 其它 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;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)

彭思图回答:
  找不到可行解,请自行检查模型   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)
点击显示
其它推荐
热门其它推荐
  • 其它