求大神!!!!!Lingo显示missing right parenthesis 10
max=@sum(i:I1(i))+@sum(i:I2(i))+B(5)*4000+400*(B(4)*1.1*0.5+X15+A1(5))-(@sum(i:C(i))+...
max=@sum(i:I1(i))+@sum(i:I2(i))+B(5)*4000+400*(B(4)*1.1*0.5+X15+A1(5))-(@sum(i:C(i))+408000)+@sum(i:IC(i));!objective function(目标);
@bnd(0,P,80);!粮食亩数限制;
@bnd(50,B(5),175);!最后五年末产奶牛数限制;
L-408000-C(1)+I0(1)+IC(1)>=0;!第一年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)>=0;!第二年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)-C(3)+I0(3)+IC(3)>=0;!第三年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)-C(3)+I0(3)+IC(3)-C(4)+I0(4)+IC(4)>=0;!第四年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)-C(3)+I0(3)+IC(3)-C(4)+I0(4)+IC(4)-c(5)+I0(5)+IC(5)>=0;!第五年利润;
@gin(X1(1));@gin(X1(2));@gin(X1(3));@gin(X1(4));@gin(X1(5));
@gin(X2(1));@gin(X2(2));@gin(X2(3));@gin(X2(4));@gin(X2(5));
@gin(A0(1));@gin(A0(2));@gin(A0(3));@gin(A0(4));@gin(A0(5));
@gin(A1(1));@gin(A1(2));@gin(A1(3));@gin(A1(4));@gin(A1(5));
@gin(B(1));@gin(B(2));@gin(B(3));@gin(B(4));@gin(B(5));
@gin(W(1));@gin(W(2));@gin(W(3));@gin(W(4));@gin(W(5));
end 展开
@bnd(0,P,80);!粮食亩数限制;
@bnd(50,B(5),175);!最后五年末产奶牛数限制;
L-408000-C(1)+I0(1)+IC(1)>=0;!第一年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)>=0;!第二年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)-C(3)+I0(3)+IC(3)>=0;!第三年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)-C(3)+I0(3)+IC(3)-C(4)+I0(4)+IC(4)>=0;!第四年利润;
L-408000-C(1)+I0(1)+IC(1)-C(2)+I0(2)+IC(2)-C(3)+I0(3)+IC(3)-C(4)+I0(4)+IC(4)-c(5)+I0(5)+IC(5)>=0;!第五年利润;
@gin(X1(1));@gin(X1(2));@gin(X1(3));@gin(X1(4));@gin(X1(5));
@gin(X2(1));@gin(X2(2));@gin(X2(3));@gin(X2(4));@gin(X2(5));
@gin(A0(1));@gin(A0(2));@gin(A0(3));@gin(A0(4));@gin(A0(5));
@gin(A1(1));@gin(A1(2));@gin(A1(3));@gin(A1(4));@gin(A1(5));
@gin(B(1));@gin(B(2));@gin(B(3));@gin(B(4));@gin(B(5));
@gin(W(1));@gin(W(2));@gin(W(3));@gin(W(4));@gin(W(5));
end 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询