>> c=[-5,4,2]; . T3 K( H1 T- j6 r5 z9 Q, D) R' pa=[6,-1,1;1,2,4]; ! A" G: K- V; w) l. yb=[8,10]; * K3 W( k& T* a7 Z* D, gvlb=[-1,0,0]; 4 z& v+ ?$ I9 p. h" I0 m& |vub=[3,2]; ; U) \; {9 B! D8 H: B6 \[x,lam]=lp(c,a,b,vlb,vub)) L8 r* A" A1 H3 l% c
??? Undefined function or method 'lp' for input arguments of type 'double'.9 Y/ _. X; e" y
& a+ M5 S1 U2 V+ w0 Q! ~
>> [x,lam]=linprog(c,a,b,vlb,vub)! K& Q+ y M, o
??? Error using ==> linprog at 192 1 W- `: c" G, B, i# u, jThe number of rows in Aeq must be the same as the length of beq. 8 b2 E) I9 E. w0 I8 ~- M1 K4 s这个错误的程序咋纠正啊,急急急急!+ [& {; m! l# M9 s' h; C$ d d
注:用的是matlab2010b