min 3x(1)+4x(2)+3x(3)+4x(4) sub.to x(1)+x(2)=5 x(3)+x(4)=5 x≥0 跪求matlab语句

问题描述:

min 3x(1)+4x(2)+3x(3)+4x(4) sub.to x(1)+x(2)=5 x(3)+x(4)=5 x≥0 跪求matlab语句

f=[3;4;3;4]; A=[1,1,0,0;0,0,1,1;0,0,0,0;0,0,0,0];b=[5;5;0;0];lb=zeros(4,1);[x,feval]=linprog(f,A,b,[],[],lb)Optimization terminated.x = 1.20709074024507e-016 7.93718615262826e-017 1.20...