>> c=[-5,4,2]; - M1 Y8 }# w$ ^& H: qa=[6,-1,1;1,2,4]; n6 `, I# I4 W5 p/ eb=[8,10]; 0 r4 p: Q+ s! g+ O; Y! }vlb=[-1,0,0]; + M7 B4 s/ g0 P& A; Dvub=[3,2]; 6 l0 S X1 `" R3 O8 s4 m[x,lam]=lp(c,a,b,vlb,vub)5 v7 R# v: c! A" x: h- r
??? Undefined function or method 'lp' for input arguments of type 'double'. ! u. i7 z+ E& S8 w. Q( v6 [ ! \+ n, R3 s( X/ w# w3 A: R
>> [x,lam]=linprog(c,a,b,vlb,vub). I. ]. b, W9 ? b1 @2 w1 h2 T+ D$ H) q+ T4 R
??? Error using ==> linprog at 1920 r( c- p4 H5 @7 q5 {* \3 }
The number of rows in Aeq must be the same as the length of beq. 4 |6 U& ?+ z2 t& H `- O9 |+ Z N5 }这个错误的程序咋纠正啊,急急急急!6 W. D( h/ w% d. ?. ?" J9 b
注:用的是matlab2010b