lingo程序求解啊model:sets:warehouses/wh1..wh2/: capacity;vendors/
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 10:27:39
lingo程序求解啊
model:
sets:
warehouses/wh1..wh2/: capacity;
vendors/v1..v6/: demand;
axin/a1..a2/:a;
bxin/b1..b2/:b;
xgong/x1..x6/:x;
ygond/y1..y6/:y;
links(warehouses,vendors): length, m;
endsets
min=@sum(links: length*m);
@for(vendors(J):
@sum(warehouses(I): m(I,J))>=demand(J));
@for(warehouses(I):
@sum(vendors(J): m(I,J))
model:
sets:
warehouses/wh1..wh2/: capacity;
vendors/v1..v6/: demand;
axin/a1..a2/:a;
bxin/b1..b2/:b;
xgong/x1..x6/:x;
ygond/y1..y6/:y;
links(warehouses,vendors): length, m;
endsets
min=@sum(links: length*m);
@for(vendors(J):
@sum(warehouses(I): m(I,J))>=demand(J));
@for(warehouses(I):
@sum(vendors(J): m(I,J))
这样写才对
model:
sets:
warehouses/wh1..wh2/: capacity;
vendors/v1..v6/: demand;
axin/a1..a2/:a;
bxin/b1..b2/:b;
xgong/x1..x6/:x;
ygond/y1..y6/:y;
links(warehouses,vendors): length, m;
endsets
data:
x=1.25 8.75 0.5 5.75 3 7.25;
y=1.25 0.75 4.75 5 6.5 7.25;
capacity=20 20;
demand=3 5 4 7 6 11;
enddata
@for(links(i,j):length(i,j)=@sqrt((x(j)-a(i))^2+(y(j)-b(i))^2));
min=@sum(links: length*m);
@for(vendors(J):
@sum(warehouses(I): m(I,J))>=demand(J));
@for(warehouses(I):
@sum(vendors(J): m(I,J))
model:
sets:
warehouses/wh1..wh2/: capacity;
vendors/v1..v6/: demand;
axin/a1..a2/:a;
bxin/b1..b2/:b;
xgong/x1..x6/:x;
ygond/y1..y6/:y;
links(warehouses,vendors): length, m;
endsets
data:
x=1.25 8.75 0.5 5.75 3 7.25;
y=1.25 0.75 4.75 5 6.5 7.25;
capacity=20 20;
demand=3 5 4 7 6 11;
enddata
@for(links(i,j):length(i,j)=@sqrt((x(j)-a(i))^2+(y(j)-b(i))^2));
min=@sum(links: length*m);
@for(vendors(J):
@sum(warehouses(I): m(I,J))>=demand(J));
@for(warehouses(I):
@sum(vendors(J): m(I,J))
lingo程序求解啊model:sets:warehouses/wh1..wh2/: capacity;vendors/
lingo 错误 model:sets:warehouses/1..6/:capacity; vendors/1..3/
lingo model:6发点8收点的运输问题sets:vendors/v1..v8/demand;warehouses
lingo程序求解model:sets:jingkou/1..9/:n;zuobiao/1,2/;links(jingk
在lingo中编程model:sets:time/1..51/:t;capacity/1..51/:c;order/1.
lingo程序出错,model:sets:定义行列号;lines/1..31/:line;rows/1..30/:row
lingo if语句@for(warehouses(I): @sum(vendors(J): volume(I,J))>
LINGO求解错误MODEL:SETS:CITY/1..5/:U;LINK(CITY,CITY):COST,X;ENDS
lingo程序:model:sets:product/1..3/:a,b; row/1..5/:c,d,y; num/1
lingo错误求解model:sets:kinds/1..10/:c_p,d,v,Q,s,N;fa/A1,A2,A3/:
求改lingo程序,用sets:endsets
怎样用lingo程序求解分段函数啊