用matlab求解线性规划问题,有式子,要截图答:c=[1928.57,2986.39]A=[1,1]b=168087 Aeq=[];beq=[];vlb=[0;0];vub=[];[x,fval]=linprog(c,A,b,Aeq,beq,vlb,vub)c = 1.0e+003 1.9286 2.9864 A = 1 1 b = 168087 Optimization terminated.x = 1.0e-011 0.2956 0.0680 fval = 7.7330e-009 ...
MATLAB线性规划,Y=2X1+X2,X1+X2<=2,X1>=0,X2>=0,求解答:>> f=[2;1];A=[1 1];b=2;Aeq=[ ];beq=[];lb=[0 0];ub=[];[X,FVAL,EXITFLAG] = linprog(f,A,b,Aeq,beq,lb,ub)Optimization terminated.X = 1.0e-08 0.1105 0.1177 FVAL = 3.3871e-09 EXITFLAG = 1