>> c=[-5,4,2]; & K& F( B$ E) {. c+ }+ L6 H' Ta=[6,-1,1;1,2,4];' y5 w. ?) F# |5 x) y
b=[8,10]; $ [8 R: X" N C' ivlb=[-1,0,0];, R, F6 w& |; l% M
vub=[3,2];% Q9 J7 F) O4 w r0 f/ J( ? e1 z
[x,lam]=lp(c,a,b,vlb,vub) 4 {* u% m- z" w??? Undefined function or method 'lp' for input arguments of type 'double'.6 x7 \4 [. p& `( U r* W! j% ~
$ l% S+ Z: p) p) R: F: |>> [x,lam]=linprog(c,a,b,vlb,vub): W) Z! }( B" U2 e6 r
??? Error using ==> linprog at 192 u* ~1 W% i' R Y* g6 H6 Q% ^
The number of rows in Aeq must be the same as the length of beq. 4 T2 u" V/ z5 V( ^这个错误的程序咋纠正啊,急急急急! 9 y* f5 S/ F% ]9 r5 }3 C) e注:用的是matlab2010b