急!急!急!利用LINGO解决下面线性规划问题!求高手!
max=x1*y1+x2*y3+x3*y3+x4*y4;((482-y1)/482)/((x1-297)/297)=0.4;((32-y2)/32)/((x2-720)/...
max=x1*y1+x2*y3+x3*y3+x4*y4;
((482-y1)/482)/((x1-297)/297)=0.4;
((32-y2)/32)/((x2-720)/720)=2.7;
((21-y3)/21)/((x3-1050)/1050)=1.1;
((7-y4)/7)/((x4-815)/815)=0.4;
((y3-21)/21)/((x4-815)/815)=0.1;
((y4-7)/7)/((x3-1050)/1050)=0.4;
s4y1+80y2+35y3+25y4<=60000;
9y1+2y2+30y3+40y4<=70000;
x1,x2,x3,x4,y1,y2,y3,y4>=0 展开
((482-y1)/482)/((x1-297)/297)=0.4;
((32-y2)/32)/((x2-720)/720)=2.7;
((21-y3)/21)/((x3-1050)/1050)=1.1;
((7-y4)/7)/((x4-815)/815)=0.4;
((y3-21)/21)/((x4-815)/815)=0.1;
((y4-7)/7)/((x3-1050)/1050)=0.4;
s4y1+80y2+35y3+25y4<=60000;
9y1+2y2+30y3+40y4<=70000;
x1,x2,x3,x4,y1,y2,y3,y4>=0 展开
1个回答
展开全部
写成这样到lingo里面运行一下就行了 自己检查一下有没有系数错误
max=x1*y1+x2*y3+x3*y3+x4*y4;
(482-y1)/482=0.4*(x1-297)/297;
(32-y2)/32=2.7*(x2-720)/720;
(21-y3)/21=1.1*(x3-1050)/1050;
(7-y4)/7=0.4*(x4-815)/815;
(y3-21)/21=0.1*(x4-815)/815;
(y4-7)/7=0.4*(x3-1050)/1050;
4*y1+80*y2+35*y3+25*y4<=60000;
9*y1+2*y2+30*y3+40*y4<=70000;
max=x1*y1+x2*y3+x3*y3+x4*y4;
(482-y1)/482=0.4*(x1-297)/297;
(32-y2)/32=2.7*(x2-720)/720;
(21-y3)/21=1.1*(x3-1050)/1050;
(7-y4)/7=0.4*(x4-815)/815;
(y3-21)/21=0.1*(x4-815)/815;
(y4-7)/7=0.4*(x3-1050)/1050;
4*y1+80*y2+35*y3+25*y4<=60000;
9*y1+2*y2+30*y3+40*y4<=70000;
更多追问追答
追问
加什么语句可以对x1 x2 x3 x4 y1 y2 y3 y4进行取整且都大于等于0!
追答
取整用@gin(x1);
默认就是非负的
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询