求解以下简单Lingo程序,为啥出错model:title:complex linear program;sets:condit/1/:a,b;area/1..5/:p,u,r,q;row/1..2/:;link(area,row):x,t;end setsdata:p=0,0.01,0.02,0.045,0.065;q=0,0.025,0.015,0.055,0.026;r=0.05,0.28,0.21,0.23,0.25;u=0,103,198
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 15:36:28
求解以下简单Lingo程序,为啥出错model:title:complex linear program;sets:condit/1/:a,b;area/1..5/:p,u,r,q;row/1..2/:;link(area,row):x,t;end setsdata:p=0,0.01,0.02,0.045,0.065;q=0,0.025,0.015,0.055,0.026;r=0.05,0.28,0.21,0.23,0.25;u=0,103,198
求解以下简单Lingo程序,为啥出错
model:
title:complex linear program;
sets:
condit/1/:a,b;
area/1..5/:p,u,r,q;
row/1..2/:;
link(area,row):x,t;
end sets
data:
p=0,0.01,0.02,0.045,0.065;
q=0,0.025,0.015,0.055,0.026;
r=0.05,0.28,0.21,0.23,0.25;
u=0,103,198,52,40;
a=0.1;
b=10000;
enddata
max=@sum(area(i):r(i)*(x(i,1)+x(i,2)))
@sum(link(i,j):p(i)*x(i,2)+p(i)*u(i)*t(i,1))
求解以下简单Lingo程序,为啥出错model:title:complex linear program;sets:condit/1/:a,b;area/1..5/:p,u,r,q;row/1..2/:;link(area,row):x,t;end setsdata:p=0,0.01,0.02,0.045,0.065;q=0,0.025,0.015,0.055,0.026;r=0.05,0.28,0.21,0.23,0.25;u=0,103,198
model:
title: complex linear program;
sets:
area/1..5/:p,u,r,q;
row/1..2/:;
link(area,row):x,t;
end sets
data:
p=0,0.01,0.02,0.045,0.065;
q=0,0.025,0.015,0.055,0.026;
r=0.05,0.28,0.21,0.23,0.25;
u=0,103,198,52,40;
a=0.1;
b=10000;
enddata
max=@sum(area(i):r(i)*(x(i,1)+x(i,2)));
@sum(link(i,j):p(i)*x(i,2)+p(i)*u(i)*t(i,1))