>> c=[-5,4,2]; 0 b$ l% V& H; T: `a=[6,-1,1;1,2,4];0 l7 a9 Q1 J5 w4 o7 q3 `
b=[8,10]; 3 @$ q0 o% G# c! T: b4 q; q! K5 cvlb=[-1,0,0];) }$ V/ t6 y( O0 t5 l, Z( y
vub=[3,2]; * q7 O! Y& @5 W2 M) Q _[x,lam]=lp(c,a,b,vlb,vub)' Q7 Y8 j0 A' G( q, c
??? Undefined function or method 'lp' for input arguments of type 'double'.1 x. E9 F7 ^ h) V: J: @8 Z
n' T9 X/ e# L; B) \: H5 F; d>> [x,lam]=linprog(c,a,b,vlb,vub)( x4 b' p+ R4 S. L8 K: m, h& t
??? Error using ==> linprog at 192 7 E' D0 |- H% lThe number of rows in Aeq must be the same as the length of beq.0 O% z, O8 m. `1 f; t3 K; H/ s
这个错误的程序咋纠正啊,急急急急! - C: x# M; w2 i$ K) f& d) k0 d注:用的是matlab2010b