>> c=[-5,4,2];* l2 D" f' V+ }. I
a=[6,-1,1;1,2,4];; B$ ~% U$ z k4 ^
b=[8,10]; 3 F0 n z# v2 ~3 O6 {0 {vlb=[-1,0,0]; 1 m7 ^9 U H$ ?- @vub=[3,2];( b5 v; D0 I2 ]: W* X" q
[x,lam]=lp(c,a,b,vlb,vub) ) |& ?5 w$ _. e7 s1 y5 q??? Undefined function or method 'lp' for input arguments of type 'double'.4 n+ K" ]* v- E `
7 @6 B" f" y& u/ k6 n+ R>> [x,lam]=linprog(c,a,b,vlb,vub)) t* V. `+ |# T
??? Error using ==> linprog at 1928 Y4 f& L8 q8 J' D: C$ {: { g
The number of rows in Aeq must be the same as the length of beq. . H; r) [/ d5 q' Q这个错误的程序咋纠正啊,急急急急! 5 V6 z% a. F2 X+ F- i注:用的是matlab2010b