lingo错误码63是什么意思 15
model:sets:warehouses/1..42/:F;vendors/1..14/:t,c;links(warehouses,vendors):x;endsets...
model:
sets:
warehouses/1..42/: F;
vendors/1..14/: t,c;
links(warehouses,vendors): x;
endsets
min=(@sum(warehouses(I): (@sum(vendors(J): x(I,J)*c(J))-(@sum(vendors(J): c(J)))/42)^2));
@for(links(warehouses,vendors):@bin( x(I,J)));
@for(warehouses(I):
@sum(vendors(J): x(I,J)*t(J))<=6);
@sum(links: x(I,J)*c(J))<=5*20*4;
@for(warehouses(I):
@sum(vendors(J): x(I,J))<=2); @for(vendors(J):
@sum(warehouses(I):x(I,1))>=5); @for(vendors(J):
@sum(warehouses(I): x(I,2))>=7); @for(vendors(J):
@sum(warehouses(I): x(I,3))>=3); @for(vendors(J):
@sum(warehouses(I): x(I,14))>=15);
data:
t=3 3 1.5 1.5 1.5 2 2 2 1.5 3 1.5 1.5 2 1.5;
c=104 104 88 48 48 72 64 64 48 108 48 48 64 48;
enddata
end 展开
sets:
warehouses/1..42/: F;
vendors/1..14/: t,c;
links(warehouses,vendors): x;
endsets
min=(@sum(warehouses(I): (@sum(vendors(J): x(I,J)*c(J))-(@sum(vendors(J): c(J)))/42)^2));
@for(links(warehouses,vendors):@bin( x(I,J)));
@for(warehouses(I):
@sum(vendors(J): x(I,J)*t(J))<=6);
@sum(links: x(I,J)*c(J))<=5*20*4;
@for(warehouses(I):
@sum(vendors(J): x(I,J))<=2); @for(vendors(J):
@sum(warehouses(I):x(I,1))>=5); @for(vendors(J):
@sum(warehouses(I): x(I,2))>=7); @for(vendors(J):
@sum(warehouses(I): x(I,3))>=3); @for(vendors(J):
@sum(warehouses(I): x(I,14))>=15);
data:
t=3 3 1.5 1.5 1.5 2 2 2 1.5 3 1.5 1.5 2 1.5;
c=104 104 88 48 48 72 64 64 48 108 48 48 64 48;
enddata
end 展开
1个回答
展开全部
下面这样改 没可行解 那我就没办法了
model:
sets:
warehouses/1..42/: F;
vendors/1..14/: t,c;
links(warehouses,vendors): x;
endsets
min=(@sum(warehouses(I): (@sum(vendors(J): x(I,J)*c(J))-(@sum(vendors(J): c(J)))/42)^2));
@for(links(I,J):@bin( x(I,J)));
@for(warehouses(I):
@sum(vendors(J): x(I,J)*t(J))<=6);
@sum(links(I,J): x(I,J)*c(J))<=5*20*4;
@for(warehouses(I):
@sum(vendors(J): x(I,J))<=2); @for(vendors(J):
@sum(warehouses(I):x(I,1))>=5); @for(vendors(J):
@sum(warehouses(I): x(I,2))>=7); @for(vendors(J):
@sum(warehouses(I): x(I,3))>=3); @for(vendors(J):
@sum(warehouses(I): x(I,14))>=15);
data:
t=3 3 1.5 1.5 1.5 2 2 2 1.5 3 1.5 1.5 2 1.5;
c=104 104 88 48 48 72 64 64 48 108 48 48 64 48;
enddata
end
model:
sets:
warehouses/1..42/: F;
vendors/1..14/: t,c;
links(warehouses,vendors): x;
endsets
min=(@sum(warehouses(I): (@sum(vendors(J): x(I,J)*c(J))-(@sum(vendors(J): c(J)))/42)^2));
@for(links(I,J):@bin( x(I,J)));
@for(warehouses(I):
@sum(vendors(J): x(I,J)*t(J))<=6);
@sum(links(I,J): x(I,J)*c(J))<=5*20*4;
@for(warehouses(I):
@sum(vendors(J): x(I,J))<=2); @for(vendors(J):
@sum(warehouses(I):x(I,1))>=5); @for(vendors(J):
@sum(warehouses(I): x(I,2))>=7); @for(vendors(J):
@sum(warehouses(I): x(I,3))>=3); @for(vendors(J):
@sum(warehouses(I): x(I,14))>=15);
data:
t=3 3 1.5 1.5 1.5 2 2 2 1.5 3 1.5 1.5 2 1.5;
c=104 104 88 48 48 72 64 64 48 108 48 48 64 48;
enddata
end
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询