急!!求高手lingo或matlab求解下面线性规划问题目标函数 15
急!!求高手lingo或matlab求解下面线性规划问题目标函数:MaxZ=[(C11X11+C21X2j+C31X31+C41X41)*100-50*(1-X11)-4...
急!!求高手lingo或matlab求解下面线性规划问题目标函数:MaxZ=[(C11X11+C21X2j+C31X31+C41X41)*100-50*(1-X11)-40*(1-X12)-40*(1-X13)-50*(1-X14)]*0.9+[(C12X12+C22X22+C32X32+C42X42)*100-50*(1- X21)-40*(1- X22) -40*(1- X23) -50* (1- X24)]*0.9+[(C13X13+C23X23+C33X33+C43X43)*100-50*(1- X31) -40* (1- X32) -40* (1- X33) -50*(1- X34)]*0.9+([C14X14+C24X24+C34X34+C44X44)*100-50* (1- X41) -40* (1- X42) -40*(1- X43) -50*(1- X44)]*0.9+[(C15X15+C25X25+C35X35+C45X45)q5*100-50* (1- X51) -40*(1- X52) -40* (1- X53) -50*(1- X54)]*0.9
约束条件:∑Xi1=3 i=1,2,3,4∑Xi2=3 i=1,2,3,4∑Xi3=3 i=1,2,3,4∑Xi4=3 i=1,2,3,4∑Xi5=3 i=1,2,3,4(C11*1.0+ C21*0.7+ C31*1.5+ C41*0.5)/(C11+C21+C31+C41)=0.9(C12*1.0+ C22*0.7+ C32*1.5+ C42*0.5)/(C12+ C22+ C32+ C42)=0.8(C13*1.0+ C23*0.7+ C33*1.5+ C43*0.5)/(C13+ C23+ C33+ C43)=1.2(C14*1.0+ C24*0.7+ C34*1.5+ C44*0.5)/(C14+ C24+ C34+ C44)=0.6(C15*1.0+ C25*0.7+ C35*1.5+ C45*0.5)/(C15+ C25+ C35+ C45)=1.0C1j<=2 j=1,2,3,4,5C2j<=2.5 j=1,2,3,4,5C3j<=1.3 j=1,2,3,4,5C4j<=3 j=1,2,3,4,5Xij=0,1Cj>=0 i=1,2,3,4, j=1,2,3,4,5
请将代码段和结果发至邮箱h10086d@163.com
金币不多,大家帮帮忙,谢谢哈! 展开
约束条件:∑Xi1=3 i=1,2,3,4∑Xi2=3 i=1,2,3,4∑Xi3=3 i=1,2,3,4∑Xi4=3 i=1,2,3,4∑Xi5=3 i=1,2,3,4(C11*1.0+ C21*0.7+ C31*1.5+ C41*0.5)/(C11+C21+C31+C41)=0.9(C12*1.0+ C22*0.7+ C32*1.5+ C42*0.5)/(C12+ C22+ C32+ C42)=0.8(C13*1.0+ C23*0.7+ C33*1.5+ C43*0.5)/(C13+ C23+ C33+ C43)=1.2(C14*1.0+ C24*0.7+ C34*1.5+ C44*0.5)/(C14+ C24+ C34+ C44)=0.6(C15*1.0+ C25*0.7+ C35*1.5+ C45*0.5)/(C15+ C25+ C35+ C45)=1.0C1j<=2 j=1,2,3,4,5C2j<=2.5 j=1,2,3,4,5C3j<=1.3 j=1,2,3,4,5C4j<=3 j=1,2,3,4,5Xij=0,1Cj>=0 i=1,2,3,4, j=1,2,3,4,5
请将代码段和结果发至邮箱h10086d@163.com
金币不多,大家帮帮忙,谢谢哈! 展开
2个回答
展开全部
你这个题目我试着做了一遍,很遗憾的是没有找到解。不知道你的虚铅模型具体是如何的。下面我把我的程序激胡给你。不知道是否帮到你了。
model:
sets:
a/1..4/:w,t,bb;
b/1..5/:q;
r(a,b):x,c;
endsets
data:
t=1 0.7 1.5 0.5;
q=0.9 0.8 1.2 1.6 1;
w=2 2.5 1.3 3;
bb=50 40 40 50;
enddata
max=0.9*@sum(r(i,j):100*x(i,j)*c(i,j)-bb(i)*(1-x(i,j)));
@for(b(j):@sum(a(i):x(i,j))=3);
@for(b(j):@sum(r(i,j):c(i,j)*t(i))/(@sum(r(i,j):c(i,j)))=q(j));
@for(a(i):@for(b(j):c(i,j)<差铅好w(i)));
@for(r(i,j):@bin(x(i,j)));
end
model:
sets:
a/1..4/:w,t,bb;
b/1..5/:q;
r(a,b):x,c;
endsets
data:
t=1 0.7 1.5 0.5;
q=0.9 0.8 1.2 1.6 1;
w=2 2.5 1.3 3;
bb=50 40 40 50;
enddata
max=0.9*@sum(r(i,j):100*x(i,j)*c(i,j)-bb(i)*(1-x(i,j)));
@for(b(j):@sum(a(i):x(i,j))=3);
@for(b(j):@sum(r(i,j):c(i,j)*t(i))/(@sum(r(i,j):c(i,j)))=q(j));
@for(a(i):@for(b(j):c(i,j)<差铅好w(i)));
@for(r(i,j):@bin(x(i,j)));
end
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
可以数中唤去matlab论薯凯坛询问大培衡师
http://www.ilovematlab.cn/forum.php
http://www.ilovematlab.cn/forum.php
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询