lingo 编程时出现错误,希望让各位大大看看出了什么问题,是语法还是方程本身的问题.model:sets:projec
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/12 03:42:00
lingo
编程时出现错误,希望让各位大大看看出了什么问题,是语法还是方程本身的问题.
model:
sets:
project/1..8/:u,p;
year/1..5/:c,d;
link(year,project):a,b;
endsets
目标函数;
max=@sum(year :d);
第i年末利润di的计算;
@for(year(I):
d(I)=@sum(project(J):b(I,J)));
bij的计算;
b(1,1)=a(1,1)*p(1);
b(1,2)=a(1,2)*p(2);
b(2,1)=a(2,1)*p(1);
b(2,2)=a(2,2)*p(2);
b(3,1)=a(3,1)*p(1);
b(3,2)=a(3,2)*p(2);
b(4,1)=a(4,1)*p(1);
b(4,2)=a(4,2)*p(2);
b(5,1)=a(5,1)*p(1);
b(5,2)=a(5,2)*p(2);
b(2,3)=a(1,3)*p(3);
b(2,4)=a(1,4)*p(4);
b(3,3)=a(2,3)*p(3);
b(3,4)=a(2,4)*p(4);
b(4,3)=a(3,3)*p(3);
b(4,4)=a(3,4)*p(4);
b(5,3)=a(4,3)*p(3);
b(5,4)=a(4,4)*p(4);
b(3,5)=a(1,5)*p(5);
b(3,6)=a(1,6)*p(6);
b(4,5)=a(2,5)*p(5);
b(4,6)=a(2,6)*p(6);
b(5,5)=a(3,5)*p(5);
b(5,6)=a(3,6)*p(6);
b(5,7)=a(2,7)*p(7);
b(5,8)=a(3,8)*p(8);
约束条件;
投资上限;
@for(year(I):
project(J):a(I,J)
编程时出现错误,希望让各位大大看看出了什么问题,是语法还是方程本身的问题.
model:
sets:
project/1..8/:u,p;
year/1..5/:c,d;
link(year,project):a,b;
endsets
目标函数;
max=@sum(year :d);
第i年末利润di的计算;
@for(year(I):
d(I)=@sum(project(J):b(I,J)));
bij的计算;
b(1,1)=a(1,1)*p(1);
b(1,2)=a(1,2)*p(2);
b(2,1)=a(2,1)*p(1);
b(2,2)=a(2,2)*p(2);
b(3,1)=a(3,1)*p(1);
b(3,2)=a(3,2)*p(2);
b(4,1)=a(4,1)*p(1);
b(4,2)=a(4,2)*p(2);
b(5,1)=a(5,1)*p(1);
b(5,2)=a(5,2)*p(2);
b(2,3)=a(1,3)*p(3);
b(2,4)=a(1,4)*p(4);
b(3,3)=a(2,3)*p(3);
b(3,4)=a(2,4)*p(4);
b(4,3)=a(3,3)*p(3);
b(4,4)=a(3,4)*p(4);
b(5,3)=a(4,3)*p(3);
b(5,4)=a(4,4)*p(4);
b(3,5)=a(1,5)*p(5);
b(3,6)=a(1,6)*p(6);
b(4,5)=a(2,5)*p(5);
b(4,6)=a(2,6)*p(6);
b(5,5)=a(3,5)*p(5);
b(5,6)=a(3,6)*p(6);
b(5,7)=a(2,7)*p(7);
b(5,8)=a(3,8)*p(8);
约束条件;
投资上限;
@for(year(I):
project(J):a(I,J)
@for(year(I):
project(J):a(I,J)
project(J):a(I,J)
lingo 编程时出现错误,希望让各位大大看看出了什么问题,是语法还是方程本身的问题.model:sets:projec
lingo model:6发点8收点的运输问题sets:vendors/v1..v8/demand;warehouses
LINGO编程错误model:sets:C1/1..3/:; C2/1..8/:; C3/1..7/:; S1/1..1
跪求答案,lingo编程出现问题,希望高手能帮忙,非常感谢
lingo运行问题model:sets:points/1..24/:d;endsetsmax=@sum(points(i
请各位大大看看这个lingo程序哪里出错了?
小弟刚接触LINGO,实在是没辙了,编写完成后出现model is ill difined希望各位好心人帮助,十万火急,
lingo的运行错误问题
lingo问题model:sets:weizhi/a b/:cap,m,n;ven/ v1 v2 v3 v4 v5 v6
lingo最短路问题MODEL:sets:nodes/s,1,2,3,4,t/;links(nodes,nodes)/s
数学建模(Lingo编程问题)
在lingo中编程model:sets:time/1..51/:t;capacity/1..51/:c;order/1.