lingo怎么表示这个式子?
来源:学生作业帮 编辑:神马作文网作业帮 分类:数学作业 时间:2024/11/10 19:56:02
lingo怎么表示这个式子?
c=@if(x#eq#0,0.1*Q,1+0.5*X+0.1*Q);
再问: Model: Title; Sets: yuefen/1..4/:c,x,e,d,s; endsets data: c=5 5 5 5; d=400 200 300 400; e=1 1 1 1; a=6000; enddata min=@sum(yuefen:c*x+e*s+1000); @for(yuefen(i)|i#lt#4:s(i+1)=s(i)+x(i)-d(i)); x(1)+s(1)
再问: Model: Title; Sets: yuefen/1..4/:c,x,e,d,s; endsets data: c=5 5 5 5; d=400 200 300 400; e=1 1 1 1; a=6000; enddata min=@sum(yuefen:c*x+e*s+1000); @for(yuefen(i)|i#lt#4:s(i+1)=s(i)+x(i)-d(i)); x(1)+s(1)