lingo二维数组怎么赋值,在data数据段对x(0,3)的赋值,我的语法有错,请问怎么改 15
model:sets:qt/0,1,2,3,4/;sit/1,2,3,4/;link(qt,sit):x;endsetsdata:x(0,3)=10;x(1,4)=40,...
model:
sets:
qt/0,1,2,3,4/;
sit/1,2,3,4/;
link(qt,sit):x;
endsets
data:
x(0,3)=10;
x(1,4)=40,x(2,4)=60,x(3,4)=75,x(4,4)=25;
enddata
min=@sum(qt(i):x(i,1)*400+x(i,2)*450+x(i,3)*20);
@for(qt(i):x(i,1)<40;);
@for(qt(i):x(i,4)<x(i,1)+x(i,2)+x(i,-1,3););
end 展开
sets:
qt/0,1,2,3,4/;
sit/1,2,3,4/;
link(qt,sit):x;
endsets
data:
x(0,3)=10;
x(1,4)=40,x(2,4)=60,x(3,4)=75,x(4,4)=25;
enddata
min=@sum(qt(i):x(i,1)*400+x(i,2)*450+x(i,3)*20);
@for(qt(i):x(i,1)<40;);
@for(qt(i):x(i,4)<x(i,1)+x(i,2)+x(i,-1,3););
end 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询