数学建模——指派问题(Matlab解决方法) f=[-6,-2,-3,-5]; A=[-3,5,-1,-6;1,1,1,-1;1,2,4,5;]; b=[-4,3,10]; intcon=[1,2,3,4]; lb=zeros(4,1); ub=ones(4,1); [x,y]=intlinprog(f,intcon,A,b,[],[],lb,ub); x,y=-y plot(x,'--ok');