>> c=[-5,4,2];/ [ @9 n" l2 u* I7 x5 A. ~: o
a=[6,-1,1;1,2,4]; ' P- l. Y& X& Ab=[8,10]; * O5 \ x4 ^! ^% Y% j5 bvlb=[-1,0,0]; 6 @, W/ k% V' t. t3 i' ]vub=[3,2]; 6 u% j: N5 A- M; t[x,lam]=lp(c,a,b,vlb,vub) , [% x4 }8 @. _& Y??? Undefined function or method 'lp' for input arguments of type 'double'. " P6 F& h& B% h ! c# l: W: G1 o>> [x,lam]=linprog(c,a,b,vlb,vub)( _: `0 E6 K2 V) D+ N9 T: ~( ]7 U
??? Error using ==> linprog at 192& M1 a4 R) b8 n" H2 ]+ v
The number of rows in Aeq must be the same as the length of beq. $ ?. v, s# g3 s7 Y这个错误的程序咋纠正啊,急急急急! , `8 T& [5 F# H6 G: ~2 R2 H注:用的是matlab2010b