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(y
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 23:57:54
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(y
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)
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(y
@for(year(I):
project(J):a(I,J)