>> c=[-5,4,2];1 X8 [0 ]2 }! m8 D" j0 K$ j4 }
a=[6,-1,1;1,2,4]; & v7 E5 k o2 s7 K$ ^/ x/ rb=[8,10]; " Q5 n& R# t. K% ~" G' A/ \vlb=[-1,0,0];* z4 d5 O2 k! u5 S: c
vub=[3,2]; # }1 {# u4 D- P$ m7 \1 g[x,lam]=lp(c,a,b,vlb,vub)( Z# ?2 B5 N6 J2 r/ F& C
??? Undefined function or method 'lp' for input arguments of type 'double'.5 `. e8 V4 j; F8 H7 N( V" n
; ]4 Z* b/ E1 h! D, \7 j. t5 \8 e# I1 c7 q>> [x,lam]=linprog(c,a,b,vlb,vub)) G, X1 L+ l1 d4 Y7 \4 @9 I
??? Error using ==> linprog at 192 j! }8 Z6 x4 w& O( F/ [' g
The number of rows in Aeq must be the same as the length of beq. 7 v: p6 ~9 g1 E9 |这个错误的程序咋纠正啊,急急急急! 7 j! _5 k8 Z& w( h7 J7 B注:用的是matlab2010b